generated from Leo_Ding/web-template
平台名称动态切换
This commit is contained in:
parent
09f0c040e8
commit
8d7b5c4107
@ -1,12 +1,7 @@
|
||||
<template>
|
||||
<div
|
||||
class="brand"
|
||||
:class="cpClass"
|
||||
:style="cpStyle">
|
||||
<img
|
||||
alt=""
|
||||
:src="config('app.logo')" />
|
||||
<h1>{{ config('app.title') }}</h1>
|
||||
<div class="brand" :class="cpClass" :style="cpStyle">
|
||||
<!-- <img alt="" src="/public/logo-hahayun.png" /> -->
|
||||
<h1 style="color:#7babdb">{{ Title }}</h1>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -15,7 +10,7 @@ import { storeToRefs } from 'pinia'
|
||||
import { computed } from 'vue'
|
||||
import { config } from '@/config'
|
||||
import { useAppStore } from '@/store'
|
||||
|
||||
import storage from '@/utils/storage'
|
||||
defineOptions({
|
||||
name: 'Brand',
|
||||
})
|
||||
@ -49,6 +44,10 @@ const cpStyle = computed(() => {
|
||||
height: `${appConfig.value.headerHeight}px`,
|
||||
}
|
||||
})
|
||||
const Title = computed(() => {
|
||||
const platForm = storage.local.getItem('platform')
|
||||
return platForm == 'jianguan' ? '智慧养老居家监管平台' : platForm == 'yunying' ? '智慧养老居家运营平台' : '智慧养老居家呼叫平台'
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user