| | |
| | | :class="{ 'is-animating': collapseAnimating }" |
| | | :width="asideWidth"> |
| | | <div class="aside-logo" :class="{ 'is-collapse': asideCompact }"> |
| | | <img class="aside-logo-image" src="../static/images/zy-logo.png" alt="浙江中扬"> |
| | | <img class="aside-logo-image" :src="brandLogo || '../static/images/zy-logo.png'" alt="Logo"> |
| | | </div> |
| | | |
| | | <transition name="aside-fade"> |
| | |
| | | |
| | | <transition name="aside-fade"> |
| | | <div class="aside-footer" v-show="showAsideExtras"> |
| | | <div class="aside-footer-copy">© 2026 {{ t('app.company') }}</div> |
| | | <div class="aside-footer-copy">{{ brandCopyright || ('© 2026 ' + t('app.company')) }}</div> |
| | | <div class="aside-footer-version"> |
| | | <span class="aside-footer-version-text">{{ versionText }}</span> |
| | | <el-tag |
| | |
| | | userName: localStorage.getItem(USER_STORAGE_KEY) || (window.WCS_I18N ? window.WCS_I18N.tl("管理员") : "管理员"), |
| | | aiAssistantVisible: false, |
| | | aiAssistantMounted: false, |
| | | aiAssistantSrc: baseUrl + "/views/ai/diagnosis.html" |
| | | aiAssistantSrc: baseUrl + "/views/ai/diagnosis.html", |
| | | brandLogo: "", |
| | | brandTitle: "", |
| | | brandCopyright: "" |
| | | }; |
| | | }, |
| | | computed: { |
| | |
| | | this.bindI18n(); |
| | | this.installCompatBridge(); |
| | | this.loadSystemVersion(); |
| | | this.loadBranding(); |
| | | this.loadMenu(); |
| | | this.loadLicenseDays(); |
| | | this.checkFakeStatus(); |
| | |
| | | tab.group = this.tl(tab.group); |
| | | }, |
| | | updateDocumentTitle: function (title) { |
| | | document.title = title + " - " + this.t("app.title"); |
| | | document.title = title + " - " + (this.brandTitle || this.t("app.title")); |
| | | }, |
| | | resolveMenuIcon: function (code) { |
| | | var iconMap = { |
| | |
| | | } |
| | | }); |
| | | }, |
| | | loadBranding: function () { |
| | | var that = this; |
| | | $.ajax({ |
| | | url: baseUrl + "/openapi/getBranding", |
| | | headers: { token: localStorage.getItem("token") }, |
| | | method: "GET", |
| | | success: function (res) { |
| | | if (res.code === 200 && res.data) { |
| | | that.brandLogo = res.data.logo || ""; |
| | | that.brandTitle = res.data.title || ""; |
| | | that.brandCopyright = res.data.copyright || ""; |
| | | if (res.data.title) { |
| | | document.title = that.activeTabTitle + " - " + res.data.title; |
| | | } |
| | | if (res.data.logo) { |
| | | var link = document.querySelector('link[rel="icon"]'); |
| | | if (link) link.href = res.data.logo.indexOf("data:") === 0 ? res.data.logo : res.data.logo + "?v=" + Date.now(); |
| | | } |
| | | } |
| | | } |
| | | }); |
| | | }, |
| | | loadLicenseDays: function () { |
| | | var that = this; |
| | | $.ajax({ |