|
|
@@ -1,8 +1,5 @@
|
|
|
-import {
|
|
|
- createRouter,
|
|
|
- createWebHistory,
|
|
|
- createWebHashHistory
|
|
|
-} from 'vue-router'
|
|
|
+import { createRouter, createWebHashHistory } from 'vue-router'
|
|
|
+// createWebHistory,
|
|
|
import layout from '@/layout'
|
|
|
|
|
|
// 公开路由表
|
|
|
@@ -48,11 +45,11 @@ const publicRoutes = [
|
|
|
]
|
|
|
|
|
|
const router = createRouter({
|
|
|
- // history: createWebHashHistory(),
|
|
|
- history:
|
|
|
- process.env.NODE_ENV === 'production'
|
|
|
- ? createWebHistory()
|
|
|
- : createWebHashHistory(),
|
|
|
+ history: createWebHashHistory(),
|
|
|
+ // history:
|
|
|
+ // process.env.NODE_ENV === 'production'
|
|
|
+ // ? createWebHistory()
|
|
|
+ // : createWebHashHistory(),
|
|
|
routes: [...publicRoutes]
|
|
|
})
|
|
|
|