新增
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index af132af..f6d004d 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -44,8 +44,8 @@
Login
- username: admin
- password: any
+ username: 1000、10001、10002
+ password: admin、teacher、student
@@ -106,6 +106,8 @@ export default {
if (valid) {
this.loading = true
this.$store.dispatch('user/login', this.loginForm).then(() => {
+ console.log('login success, this.redirect', this.redirect)
+ // 固定登录成功后跳转的页面
this.$router.push({ path: this.redirect || '/' })
this.loading = false
}).catch(() => {
diff --git a/src/views/subject/index.vue b/src/views/subject/index.vue
index 4487f88..87b207c 100644
--- a/src/views/subject/index.vue
+++ b/src/views/subject/index.vue
@@ -20,12 +20,12 @@
-