From b0c57fc4071ea63c3e40641f3fcae35e79f37123 Mon Sep 17 00:00:00 2001 From: Lee-1203 <342694918@qq.com> Date: Thu, 10 Mar 2022 17:54:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=8D=E9=A6=88=E4=BF=AE=E6=94=B9=E5=AE=8C?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/home/evaluation/entrance.vue | 29 +++++++++++++------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/src/views/home/evaluation/entrance.vue b/src/views/home/evaluation/entrance.vue index 3f27ebd..39dce66 100644 --- a/src/views/home/evaluation/entrance.vue +++ b/src/views/home/evaluation/entrance.vue @@ -19,8 +19,8 @@ 用第一感觉作答,勿做太多的思考!
- 考生本人测评入口 - 家长/亲属测评入口 + 考生本人测评入口 + 家长/亲属测评入口
@@ -36,7 +36,6 @@ export default { }; }, created() { - this.isScroll = true; window.addEventListener("scroll", this.eventScrollTop); if(this.$route.query.source !== ''){ @@ -44,21 +43,23 @@ export default { } }, mounted() { - if(!localStorage.token){ - this.$router.replace('/login'); - return config - } + }, computed: {}, methods: { // 页面跳转 - goPage(path, state) { - this.$router.push({ - path: path, - query: { - state, - }, - }); + toEvaluation(path, state) { + if(!localStorage.token){ + this.$router.replace('/login'); + return false; + }else{ + this.$router.push({ + path: path, + query: { + state, + }, + }); + } }, // 滚动改变样式 eventScrollTop() {