Przeglądaj źródła

fix: 刷新标签设置丢失问题

zhangjie 1 miesiąc temu
rodzic
commit
0d294def31
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      src/App.vue

+ 4 - 0
src/App.vue

@@ -23,5 +23,9 @@ export default {
       return !whiteRoutes.includes(this.$route.name);
     },
   },
+  mounted() {
+    const data = this.$ls.get("schoolInfo", {});
+    if (data.tabName) document.title = data.tabName;
+  },
 };
 </script>