反馈修改完成

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>
<div class="entrance-btns"> <div class="entrance-btns">
<span @click="goPage('/evaluation/question', 'student')">考生本人测评入口</span> <span @click="toEvaluation('/evaluation/question', 'student')">考生本人测评入口</span>
<span @click="goPage('/evaluation/question', 'parents')">家长/亲属测评入口</span> <span @click="toEvaluation('/evaluation/question', 'parents')">家长/亲属测评入口</span>
</div> </div>
</div> </div>
</div> </div>
@ -36,7 +36,6 @@ export default {
}; };
}, },
created() { created() {
this.isScroll = true; this.isScroll = true;
window.addEventListener("scroll", this.eventScrollTop); window.addEventListener("scroll", this.eventScrollTop);
if(this.$route.query.source !== ''){ if(this.$route.query.source !== ''){
@ -44,21 +43,23 @@ export default {
} }
}, },
mounted() { mounted() {
if(!localStorage.token){
this.$router.replace('/login');
return config
}
}, },
computed: {}, computed: {},
methods: { methods: {
// //
goPage(path, state) { toEvaluation(path, state) {
this.$router.push({ if(!localStorage.token){
path: path, this.$router.replace('/login');
query: { return false;
state, }else{
}, this.$router.push({
}); path: path,
query: {
state,
},
});
}
}, },
// //
eventScrollTop() { eventScrollTop() {