提交 8d76a09e authored 作者: lihuihui's avatar lihuihui

updata

上级 10772e4a
......@@ -260,13 +260,6 @@ export default {
async tab(e) {
const isLogin = await this.$store.dispatch('checkLogin')
if (e === 1 || e === 2) {
if (e === 1) {
window.localStorage.examTab = e
this.getCourseChapterList()
} else {
window.localStorage.examTab = 0
this.getCourseList()
}
if (!isLogin) {
if (this.isWeapp) {
// 小程序
......@@ -279,6 +272,14 @@ export default {
this.$router.push({ name: 'login' })
}
return
} else {
if (e === 1) {
window.localStorage.examTab = e
this.getCourseChapterList()
} else {
window.localStorage.examTab = 0
this.getCourseList()
}
}
}
this.tabNav.navIndex = e
......
......@@ -12,8 +12,7 @@ export default [
{
path: '/exam/answer',
name: 'examAnswer',
component: () => import('../pages/courseExam/answer.vue'),
meta: { requiredLogin: true }
component: () => import('../pages/courseExam/answer.vue')
},
/* 能力自测答题结果 */
{
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论