提交 ec4a0375 authored 作者: lihuihui's avatar lihuihui

修改跳转

上级 05c5184b
...@@ -100,7 +100,7 @@ export default { ...@@ -100,7 +100,7 @@ export default {
if (userRole !== 0) { if (userRole !== 0) {
this.roleChange = userRole this.roleChange = userRole
} }
if (window.localStorage.isExamEnd === 'true' || window.localStorage.isExamEnd === true) { if (window.localStorage.isExamEnd === 'true') {
this.abilityExam() this.abilityExam()
} }
}, },
...@@ -130,7 +130,8 @@ export default { ...@@ -130,7 +130,8 @@ export default {
}) })
}, },
setRole() { setRole() {
if (this.$store.state.isVip) { this.$store.dispatch('checkIsVip').then(isVip => {
if (isVip) {
const param = { const param = {
type: 2 type: 2
} }
...@@ -150,11 +151,8 @@ export default { ...@@ -150,11 +151,8 @@ export default {
this.$router.push({ this.$router.push({
path: '/payPage' path: '/payPage'
}) })
})
} }
},
beforeMount() {
// 检测是否是付费用户
this.$store.dispatch('checkIsVip')
} }
} }
</script> </script>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论