Sfoglia il codice sorgente

html标题动态修改逻辑添加

Koishi 3 anni fa
parent
commit
6ec72cc1b8
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 4 1
      src/App.vue

+ 4 - 1
src/App.vue

@@ -400,7 +400,7 @@ export default {
       this.menuIndex = menuIndex;
     },
     clearBackground() {
-      return
+      return;
       let body = $("body.light");
       if (!body) body = $("body.dark");
       body.css({
@@ -417,6 +417,9 @@ export default {
   watch: {
     $route(res) {
       this.showSisView = res.fullPath === "/sisView";
+      this.showSisView
+        ? (document.title = "sis横屏")
+        : (document.title = "智能综合分析系统");
 
       this.hideHeard = res.query.hideheard || "0";
       this.hideMenus = res.query.hidemenus || "0";