平台名称动态切换

This commit is contained in:
Leo_Ding 2025-11-12 14:50:52 +08:00
parent 09f0c040e8
commit 8d7b5c4107

View File

@ -1,12 +1,7 @@
<template> <template>
<div <div class="brand" :class="cpClass" :style="cpStyle">
class="brand" <!-- <img alt="" src="/public/logo-hahayun.png" /> -->
:class="cpClass" <h1 style="color:#7babdb">{{ Title }}</h1>
:style="cpStyle">
<img
alt=""
:src="config('app.logo')" />
<h1>{{ config('app.title') }}</h1>
</div> </div>
</template> </template>
@ -15,7 +10,7 @@ import { storeToRefs } from 'pinia'
import { computed } from 'vue' import { computed } from 'vue'
import { config } from '@/config' import { config } from '@/config'
import { useAppStore } from '@/store' import { useAppStore } from '@/store'
import storage from '@/utils/storage'
defineOptions({ defineOptions({
name: 'Brand', name: 'Brand',
}) })
@ -49,6 +44,10 @@ const cpStyle = computed(() => {
height: `${appConfig.value.headerHeight}px`, height: `${appConfig.value.headerHeight}px`,
} }
}) })
const Title = computed(() => {
const platForm = storage.local.getItem('platform')
return platForm == 'jianguan' ? '智慧养老居家监管平台' : platForm == 'yunying' ? '智慧养老居家运营平台' : '智慧养老居家呼叫平台'
})
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>