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

updata

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