From fffdda21b0b2e2a9ad953a979961f3102b9c74c4 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Wed, 11 Jan 2023 14:53:24 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=98=BE=E7=A4=BA=E8=AE=BE=E7=BD=AE=E4=B8=AD?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E5=90=8D=E7=A7=B0=E4=B8=8D=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1021855 --user=李玉号 [系统设置]github#21247显示设置修改系统名称不生效 https://www.tapd.cn/55049933/s/1326076 Closes #21247 --- .../frontend/src/business/app-layout/index.vue | 8 +++++++- .../frontend/src/components/layout/AsideHeader.vue | 9 ++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/framework/sdk-parent/frontend/src/business/app-layout/index.vue b/framework/sdk-parent/frontend/src/business/app-layout/index.vue index 6f235373b7..3fde92ca17 100644 --- a/framework/sdk-parent/frontend/src/business/app-layout/index.vue +++ b/framework/sdk-parent/frontend/src/business/app-layout/index.vue @@ -22,7 +22,7 @@ :style="isFixed ? 'opacity:100%; position: relative;z-index: 666;': 'opacity: 95%;position: fixed'" @mouseenter.native="collapseOpen" @mouseleave.native="collapseClose"> - +
@@ -72,6 +72,7 @@ export default { headerHeight: "0px", isFixed: false, sideTheme: "", + sysTitle: undefined }; }, computed: { @@ -126,6 +127,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; diff --git a/framework/sdk-parent/frontend/src/components/layout/AsideHeader.vue b/framework/sdk-parent/frontend/src/components/layout/AsideHeader.vue index db0ce4685a..381dd7ecba 100644 --- a/framework/sdk-parent/frontend/src/components/layout/AsideHeader.vue +++ b/framework/sdk-parent/frontend/src/components/layout/AsideHeader.vue @@ -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" } }, };