fix(系统设置): 修改显示设置中系统名称不生效

--bug=1021855 --user=李玉号 [系统设置]github#21247显示设置修改系统名称不生效
https://www.tapd.cn/55049933/s/1326076

Closes #21247
This commit is contained in:
shiziyuan9527 2023-01-11 14:53:24 +08:00 committed by 刘瑞斌
parent e47305485f
commit fffdda21b0
2 changed files with 11 additions and 6 deletions

View File

@ -22,7 +22,7 @@
:style="isFixed ? 'opacity:100%; position: relative;z-index: 666;': 'opacity: 95%;position: fixed'" :style="isFixed ? 'opacity:100%; position: relative;z-index: 666;': 'opacity: 95%;position: fixed'"
@mouseenter.native="collapseOpen" @mouseenter.native="collapseOpen"
@mouseleave.native="collapseClose"> @mouseleave.native="collapseClose">
<ms-aside-header :sideTheme="sideTheme" :isCollapse="isCollapse"/> <ms-aside-header :sideTheme="sideTheme" :isCollapse="isCollapse" :title="sysTitle"/>
<ms-aside-menus :sideTheme="sideTheme" :color="color" :isCollapse="isCollapse"/> <ms-aside-menus :sideTheme="sideTheme" :color="color" :isCollapse="isCollapse"/>
<div class="ms-header-fixed" v-show="!isCollapse"> <div class="ms-header-fixed" v-show="!isCollapse">
<svg-icon iconClass="pushpin" class-name="ms-menu-pin" v-if="isFixed" @click.native="fixedChange(false)"/> <svg-icon iconClass="pushpin" class-name="ms-menu-pin" v-if="isFixed" @click.native="fixedChange(false)"/>
@ -72,6 +72,7 @@ export default {
headerHeight: "0px", headerHeight: "0px",
isFixed: false, isFixed: false,
sideTheme: "", sideTheme: "",
sysTitle: undefined
}; };
}, },
computed: { computed: {
@ -126,6 +127,11 @@ export default {
if (response.data && response.data[7] && response.data[7].paramValue) { if (response.data && response.data[7] && response.data[7].paramValue) {
this.sideTheme = response.data[7].paramValue; this.sideTheme = response.data[7].paramValue;
} }
if (response.data && response.data[6] && response.data[6].paramValue) {
this.sysTitle = response.data[6].paramValue;
}
let title = response.data[4].paramValue; let title = response.data[4].paramValue;
if (title) { if (title) {
document.title = title; document.title = title;

View File

@ -25,16 +25,15 @@ export default {
menuKey: 0, menuKey: 0,
}; };
}, },
computed: {
title() {
return localStorage.getItem("sysTitle") || "MeterSphere";
}
},
props: { props: {
sideTheme: String, sideTheme: String,
isCollapse: { isCollapse: {
type: Boolean, type: Boolean,
default: true, default: true,
},
title: {
type: String,
default: "MeterSphere"
} }
}, },
}; };