反馈修改完成

master
Lee-1203 2022-03-10 17:54:07 +08:00
parent 410abe0f2b
commit b0c57fc407
1 changed files with 15 additions and 14 deletions

View File

@ -19,8 +19,8 @@
用第一感觉作答勿做太多的思考
</div>
<div class="entrance-btns">
<span @click="goPage('/evaluation/question', 'student')">考生本人测评入口</span>
<span @click="goPage('/evaluation/question', 'parents')">家长/亲属测评入口</span>
<span @click="toEvaluation('/evaluation/question', 'student')">考生本人测评入口</span>
<span @click="toEvaluation('/evaluation/question', 'parents')">家长/亲属测评入口</span>
</div>
</div>
</div>
@ -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() {