Explorar el Código

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

zhangjie hace 1 mes
padre
commit
0d294def31
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  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>