From 8e9a7434bd72959be5d8a2c7882189a800b85dfd Mon Sep 17 00:00:00 2001
From: husq <931347610@qq.com>
Date: Tue, 19 Sep 2023 16:59:21 +0800
Subject: [PATCH] 修改默认值

---
 src/router/index.ts |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/router/index.ts b/src/router/index.ts
index 880ba53..c939264 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -1,4 +1,4 @@
-import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
+import { createRouter, createWebHistory, RouteRecordRaw, createWebHashHistory } from 'vue-router'
 import { ERouterName } from '/@/types/index'
 import CreatePlan from '/@/components/task/CreatePlan.vue'
 import WaylinePanel from '/@/pages/page-web/projects/wayline.vue'
@@ -9,14 +9,14 @@
 const routes: Array<RouteRecordRaw> = [
   {
     path: '/',
-    redirect: '/' + ERouterName.MEMBERS
+    redirect: '/' + ERouterName.LOGIN
   },
   // // 首页 登陆页面
-  // {
-  //   path: '/' + ERouterName.LOGIN,
-  //   name: ERouterName.LOGIN,
-  //   component: () => import('/@/pages/page-web/index.vue')
-  // },
+  {
+    path: '/' + ERouterName.LOGIN,
+    name: ERouterName.LOGIN,
+    component: () => import('/@/pages/page-web/index.vue')
+  },
   // members, devices
   {
     path: '/' + ERouterName.HOME,
@@ -158,7 +158,7 @@
 ]
 
 const router = createRouter({
-  history: createWebHistory(import.meta.env.BASE_URL),
+  history: createWebHashHistory(import.meta.env.BASE_URL),
   routes
 })
 

--
Gitblit v1.9.3