浏览代码

调试代码删除

zhouna 5 年之前
父节点
当前提交
70b4eeda0c
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      src/components/MainPage.vue

+ 1 - 3
src/components/MainPage.vue

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