|
@@ -18,8 +18,8 @@ router.beforeEach(async(to, from, next) => {
|
|
|
// determine whether the user has logged in
|
|
|
const hasToken = getToken()
|
|
|
|
|
|
- if (to.query.courseId) {
|
|
|
- store.commit('app/SET_COURSEID', to.query.courseId)
|
|
|
+ if (to.query.courseid) {
|
|
|
+ store.commit('app/SET_COURSEID', to.query.courseid)
|
|
|
}
|
|
|
if (hasToken) {
|
|
|
if (to.path === '/login') {
|