浏览代码

标题修改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(() => {
     let timer = setInterval(() => {
       this.num = --num
       this.num = --num
       if(num == -1){
       if(num == -1){
-        localStorage.setItem('startPage',0)
-        this.show = false
+        localStorage.setItem('startPage',0);
+        document.title = '挂号详情';
+        this.show = false;
         clearInterval(timer)
         clearInterval(timer)
       }
       }
     }, 1000);
     }, 1000);
   },
   },
   methods:{
   methods:{
     close(){
     close(){
-      localStorage.setItem('startPage',0)
+      localStorage.setItem('startPage',0);
+      document.title = '挂号详情';
       this.show = false
       this.show = false
     },
     },
     getDisclaimerInformations(){
     getDisclaimerInformations(){

+ 5 - 2
src/components/PathInfo.vue

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