husq
2023-09-15 02a8a0536d535a0826cf6ad0146b7cd4f9b712f1
路由更换为hash模式
1 files modified
6 ■■■■ changed files
src/router/index.ts 6 ●●●● patch | view | raw | blame | history
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,7 +9,7 @@
const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    redirect: '/' + ERouterName.LOGIN
    redirect: '/' + ERouterName.PROJECT_LIST
  },
  // // 首页 登陆页面
  {
@@ -158,7 +158,7 @@
]
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes
})