Преглед на файлове

Merge branch 'master' of http://192.168.10.18:3000/limeng/zhsq_qk_2.0

sumyangyang преди 1 година
родител
ревизия
49484f13ce
променени са 2 файла, в които са добавени 15 реда и са изтрити 15 реда
  1. 14 14
      zhsq_qk-ui/src/router/index.js
  2. 1 1
      zhsq_qk-ui/src/views/login.vue

+ 14 - 14
zhsq_qk-ui/src/router/index.js

@@ -91,7 +91,7 @@ export const constantRoutes = [
   },
 
   {
-    path: '',
+    path: '/',
     component: Layout,
     redirect: 'index',
     children: [
@@ -103,19 +103,19 @@ export const constantRoutes = [
       }
     ]
   },
-  // {
-  //   path: '',
-  //   component: Layout,
-  //   redirect: 'index',
-  //   children: [
-  //     {
-  //       path: 'weather',
-  //       component: () => import('@/views/fusion/index'),
-  //       name: 'weather',
-  //       meta: {title: '首页', icon: 'dashboard', affix: true}
-  //     }
-  //   ]
-  // },
+  {
+    path: '/',
+    component: Layout,
+    redirect: 'weather',
+    children: [
+      {
+        path: 'weather',
+        component: () => import('@/views/fusion/index'),
+        name: 'weather',
+        meta: {title: '首页', icon: 'dashboard', affix: true}
+      }
+    ]
+  },
   {
     path: '/user',
     component: Layout,

+ 1 - 1
zhsq_qk-ui/src/views/login.vue

@@ -141,7 +141,7 @@ export default {
             Cookies.remove('rememberMe');
           }
           this.$store.dispatch("Login", this.loginForm).then(() => {
-            this.$router.push({path: this.redirect || "/"}).catch(() => {
+            this.$router.push({path: this.redirect || "/weather"}).catch(() => {
             });
           }).catch(() => {
             this.loading = false;