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 f2c-ci-robot[bot]
parent 7729542ace
commit 910f6a87ab
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'"
@mouseenter.native="collapseOpen"
@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"/>
<div class="ms-header-fixed" v-show="!isCollapse">
<svg-icon iconClass="pushpin" class-name="ms-menu-pin" v-if="isFixed" @click.native="fixedChange(false)"/>
@ -72,6 +72,7 @@ export default {
headerHeight: "0px",
isFixed: false,
sideTheme: "",
sysTitle: undefined
};
},
computed: {
@ -127,6 +128,11 @@ export default {
if (response.data && response.data[7] && 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;
if (title) {
document.title = title;

View File

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