Selaa lähdekoodia

增加了document.title显示

louhangfei 1 vuosi sitten
vanhempi
commit
6efeffde54
2 muutettua tiedostoa jossa 4 lisäystä ja 1 poistoa
  1. 1 1
      .env
  2. 3 0
      src/App.vue

+ 1 - 1
.env

@@ -1,6 +1,6 @@
 
 # spa-title
-VITE_GLOB_APP_TITLE = skyeye-admin
+VITE_GLOB_APP_TITLE = '中国商飞安全管控平台'
 
 # spa shortname
 VITE_GLOB_APP_SHORT_NAME = SkyeyeAdmin

+ 3 - 0
src/App.vue

@@ -17,9 +17,11 @@
   import { useLockscreenStore } from '@/store/modules/lockscreen';
   import { useRoute } from 'vue-router';
   import { PageEnum } from '@/enums/pageEnum';
+  import { useGlobSetting } from './hooks/setting';
 
   const route = useRoute();
   const useLockscreen = useLockscreenStore();
+  const { title } = useGlobSetting();
 
   /** 设置不锁屏幕 */
   // const isLock = computed(() => useLockscreen.isLock);
@@ -52,6 +54,7 @@
 
   onMounted(() => {
     document.addEventListener('mousedown', timekeeping);
+    document.title = title;
   });
 
   onUnmounted(() => {