Browse Source

no message

MS-CIAZDCOIXVRW\Administrator 3 years ago
parent
commit
7d0ccb8d35
2 changed files with 2 additions and 2 deletions
  1. 1 1
      admin/src/router/index.js
  2. 1 1
      admin/src/views/login/index.vue

+ 1 - 1
admin/src/router/index.js

@@ -10,7 +10,7 @@ export default new Router({
         {
         {
             path: '/',
             path: '/',
             name: 'Layout',
             name: 'Layout',
-            redirect: '/home',
+            redirect: '/login',
             component: Layout,
             component: Layout,
             children: [
             children: [
                 {
                 {

+ 1 - 1
admin/src/views/login/index.vue

@@ -122,7 +122,7 @@ export default {
           // this.$store
           // this.$store
           //   .dispatch("user/login", this.loginForm)
           //   .dispatch("user/login", this.loginForm)
           //   .then(() => {
           //   .then(() => {
-          this.$router.push({ path: this.redirect || "/" });
+          this.$router.push({ path: this.redirect || "/home" });
           this.loading = false;
           this.loading = false;
           // })
           // })
           // .catch(() => {
           // .catch(() => {