Browse Source

feat: 默认进入路由调整

cuiyalong 10 months ago
parent
commit
a66372bc19
1 changed files with 4 additions and 0 deletions
  1. 4 0
      frontend/src/router/index.js

+ 4 - 0
frontend/src/router/index.js

@@ -10,6 +10,10 @@ import Login from "../views/Login.vue"
 import Logout from '../views/Logout.vue'
 
 const routes = [
+  {
+    path: '/',
+    redirect: '/login',
+  },
   // {
   //   path: '/',
   //   name: 'home',