diff --git a/framework/sdk-parent/frontend/src/business/login/index.vue b/framework/sdk-parent/frontend/src/business/login/index.vue index 9d83ab480b..d932ddd9e0 100644 --- a/framework/sdk-parent/frontend/src/business/login/index.vue +++ b/framework/sdk-parent/frontend/src/business/login/index.vue @@ -170,6 +170,9 @@ export default { if (title) { document.title = title; } + if (response.data[0].paramValue) { + this.shortcutIcon(); + } }) getModuleList().then(response => { let modules = {}; @@ -195,6 +198,7 @@ export default { this.rules = this.getDefaultRules(); } }); + }, created: function () { document.addEventListener("keydown", this.watchEnter); @@ -295,6 +299,13 @@ 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;