{{ $t("guide.home.title") }}
+{{ $t("guide.home.title", [defaultSysTitle]) }}
{{ $t("guide.home.desc") }}
+{{ $t("guide.home.desc", [defaultSysTitle]) }}
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 df3ba3a562..6f3a34d555 100644 --- a/framework/sdk-parent/frontend/src/business/app-layout/index.vue +++ b/framework/sdk-parent/frontend/src/business/app-layout/index.vue @@ -138,7 +138,8 @@ export default { } if (response.data && response.data[6] && response.data[6].paramValue) { - this.sysTitle = response.data[6].paramValue; + this.sysTitle = response.data[6].paramValue || "MeterSphere"; + localStorage.setItem("default-sys-title", this.sysTitle); } let title = response.data[4].paramValue; diff --git a/framework/sdk-parent/frontend/src/business/login/index.vue b/framework/sdk-parent/frontend/src/business/login/index.vue index 986cd69484..58573a593c 100644 --- a/framework/sdk-parent/frontend/src/business/login/index.vue +++ b/framework/sdk-parent/frontend/src/business/login/index.vue @@ -192,6 +192,11 @@ export default { this.loginTitle = response.data[3].paramValue; } + if (response.data && response.data[6] && response.data[6].paramValue) { + this.sysTitle = response.data[6].paramValue || "MeterSphere"; + localStorage.setItem("default-sys-title", this.sysTitle); + } + let title = response.data[4].paramValue; if (title) { document.title = title; diff --git a/framework/sdk-parent/frontend/src/components/guide/Guidance.vue b/framework/sdk-parent/frontend/src/components/guide/Guidance.vue index 65a36728f8..db321be1af 100644 --- a/framework/sdk-parent/frontend/src/components/guide/Guidance.vue +++ b/framework/sdk-parent/frontend/src/components/guide/Guidance.vue @@ -137,7 +137,7 @@ export default { } ], title: _this.$t("shepherd.step1.title"), - text: _this.$t("shepherd.step1.text") + text: _this.$t("shepherd.step1.text", [localStorage.getItem("default-sys-title") || "MeterSphere"]) }, { attachTo: { @@ -188,7 +188,7 @@ export default { } ], title: _this.$t("shepherd.step3.title"), - text: _this.$t("shepherd.step3.text") + text: _this.$t("shepherd.step3.text", [localStorage.getItem("default-sys-title") || "MeterSphere"]) }, { attachTo: { diff --git a/framework/sdk-parent/frontend/src/components/guide/components/Introduction.vue b/framework/sdk-parent/frontend/src/components/guide/components/Introduction.vue index a694bee355..8eacbf61e5 100644 --- a/framework/sdk-parent/frontend/src/components/guide/components/Introduction.vue +++ b/framework/sdk-parent/frontend/src/components/guide/components/Introduction.vue @@ -5,9 +5,9 @@
{{ $t("guide.home.title") }}
+{{ $t("guide.home.title", [defaultSysTitle]) }}
{{ $t("guide.home.desc") }}
+{{ $t("guide.home.desc", [defaultSysTitle]) }}