浏览代码

Merge branch 'master' of http://git.tjyourong.com.cn/ctop/adsp-vue

魏志佳 5 年之前
父节点
当前提交
11330a924e
共有 1 个文件被更改,包括 10 次插入3 次删除
  1. 10 3
      src/views/errorPage.vue

+ 10 - 3
src/views/errorPage.vue

@@ -4,8 +4,8 @@
       <img src="https://gw.alipayobjects.com/zos/rmsportal/RVRUAYdCGeYNBWoKiIwB.svg"/>
     </div>
     <div class="content">
-      <h1>{{ }}</h1>
-      <div class="desc">{{ }}</div>
+      <h1>异常信息</h1>
+      <div class="desc">{{desc}}</div>
       <div class="action">
         <a-button type="primary" @click="handleToHome">返回登录</a-button>
       </div>
@@ -25,13 +25,20 @@
     // },
     data() {
       return {
-        errorInfo:''
+        title:'',
+        desc:''
       }
     },
     methods: {
       handleToHome() {
          this.$router.push({name: 'login'})
       }
+    },
+    mounted() {
+      console.log(this.$route.query);
+      this.title=this.$route.query.title;
+      this.desc=this.$route.query.desc;
+
     }
   }
 </script>