Browse Source

刷新调整加参数

zhouna 5 years ago
parent
commit
72ccda9098
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/components/MainPage.vue

+ 2 - 1
src/components/MainPage.vue

@@ -155,9 +155,10 @@ export default {
     //const userInfo= JSON.parse(localStorage.getItem("userInfo"))
     const userInfo = this.$store.state.pathInfo;
     if(!userInfo.hospitalCode){    //用户数据丢失,刷新或本页面分享时,跳回登录页
+      const code = JSON.parse(localStorage.getItem("infoParam"));
       this.noAllowed=true;
       this.$router.push({
-        path:'/'
+        path:'/?hospitalCode='+code.hospitalCode
       });
       return;
     }