فهرست منبع

标题修改3202

zhouna 5 سال پیش
والد
کامیت
bd0ecda9c3
2فایلهای تغییر یافته به همراه10 افزوده شده و 5 حذف شده
  1. 5 3
      src/common/HomePage.vue
  2. 5 2
      src/components/PathInfo.vue

+ 5 - 3
src/common/HomePage.vue

@@ -34,15 +34,17 @@ export default {
     let timer = setInterval(() => {
       this.num = --num
       if(num == -1){
-        localStorage.setItem('startPage',0)
-        this.show = false
+        localStorage.setItem('startPage',0);
+        document.title = '挂号详情';
+        this.show = false;
         clearInterval(timer)
       }
     }, 1000);
   },
   methods:{
     close(){
-      localStorage.setItem('startPage',0)
+      localStorage.setItem('startPage',0);
+      document.title = '挂号详情';
       this.show = false
     },
     getDisclaimerInformations(){

+ 5 - 2
src/components/PathInfo.vue

@@ -151,7 +151,8 @@
           localStorage.removeItem('scan')
           this.getSysConfig(1);
           if(localStorage.getItem("startPage") == 1){
-            this.showStart = true
+            this.showStart = true;
+            document.title = '智能预问诊';
           }
         }
         api.getPathInfo(params).then((res)=>{
@@ -181,8 +182,10 @@
                     if(+datas[i].value==1){
                         localStorage.setItem('startPage',1)
                         //显示启动页
-                        this.showStart = true
+                        this.showStart = true;
+                        document.title = '智能预问诊';
                     }else{
+                        document.title = '挂号详情';
                         localStorage.setItem('startPage',0)
                     }
                 }