File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { clone , toggle } from 'radash'
22import { routes } from './routes.js'
33import Frame from '@/components/layout/Frame.vue'
4- import { createRouter , createWebHistory } from 'vue-router'
4+ import { createRouter } from 'vue-router'
55import { hasPermission , isLogin } from "@/util/permission.js"
66import { useUserStore } from "@/stores/user.js"
77import { ElMessage } from "element-plus"
88import { getRouteTitle } from "@/util/route.js"
9+ import { createWebHashHistory } from 'vue-router'
910
1011const appTitle = import . meta. env . VITE_APP_TITLE
1112
@@ -45,7 +46,7 @@ const handleRoutes = (routes) => {
4546
4647const handledRoutes = handleRoutes ( clone ( routes ) )
4748const router = createRouter ( {
48- history : createWebHistory ( import . meta. env . BASE_URL ) ,
49+ history : createWebHashHistory ( import . meta. env . BASE_URL ) ,
4950 routes : [ ...constantRoutes , ...handledRoutes , ...appendedRoutes ] ,
5051} )
5152
You can’t perform that action at this time.
0 commit comments