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 77de02cb17..df3ba3a562 100644 --- a/framework/sdk-parent/frontend/src/business/app-layout/index.vue +++ b/framework/sdk-parent/frontend/src/business/app-layout/index.vue @@ -151,19 +151,11 @@ export default { } else { localStorage.setItem("default-document-title", "MeterSphere"); } - if (response.data[0].paramValue) { - this.shortcutIcon(); - } + this.setAsideTheme(theme); }); }, - shortcutIcon() { - let link = document.querySelector("link[rel*='icon']") || document.createElement('link'); - link.type = 'image/x-icon'; - link.rel = 'shortcut icon'; - link.href = '/display/file/logo'; - document.getElementsByTagName('head')[0].appendChild(link); - }, + setAsideTheme(theme) { switch (this.sideTheme) { case "theme-light": diff --git a/framework/sdk-parent/frontend/src/business/login/index.vue b/framework/sdk-parent/frontend/src/business/login/index.vue index 13dad25991..687ce21800 100644 --- a/framework/sdk-parent/frontend/src/business/login/index.vue +++ b/framework/sdk-parent/frontend/src/business/login/index.vue @@ -178,9 +178,6 @@ export default { if (title) { document.title = title; } - if (response.data[0].paramValue) { - this.shortcutIcon(); - } }) }) @@ -304,13 +301,6 @@ export default { }); } }, - shortcutIcon() { - let link = document.querySelector("link[rel*='icon']") || document.createElement('link'); - link.type = 'image/x-icon'; - link.rel = 'shortcut icon'; - link.href = '/display/file/logo'; - document.getElementsByTagName('head')[0].appendChild(link); - }, redirectAuth(authId) { if (authId === 'LDAP' || authId === 'LOCAL') { return; diff --git a/system-setting/frontend/src/business/system/setting/MxDisplay.vue b/system-setting/frontend/src/business/system/setting/MxDisplay.vue index c434b4b9a3..8eac594d85 100644 --- a/system-setting/frontend/src/business/system/setting/MxDisplay.vue +++ b/system-setting/frontend/src/business/system/setting/MxDisplay.vue @@ -249,9 +249,6 @@ export default { if (this.formInline.sideTheme) { localStorage.setItem("sideTheme", this.formInline.sideTheme); } - if (this.formInline.logo) { - this.shortcutIcon(); - } this.setAsideTheme(); this.$success(this.$t('commons.save_success')); window.location.reload(); @@ -370,20 +367,10 @@ export default { this.formInline.css = response.data[8].paramValue; this.cssList.push({name: response.data[8].fileName, db: true}); } - if (response.data[0].paramValue) { - this.shortcutIcon(); - } this.setAsideTheme(); }) }, - shortcutIcon() { - let link = document.querySelector("link[rel*='icon']") || document.createElement('link'); - link.type = 'image/x-icon'; - link.rel = 'shortcut icon'; - link.href = '/display/file/logo'; - document.getElementsByTagName('head')[0].appendChild(link); - }, cancel() { this.showEdit = true; this.showCancel = false;