|
@@ -1,4 +1,4 @@
|
|
|
-import { createRouter, createWebHistory } from "vue-router"
|
|
|
+import { createRouter, createWebHashHistory } from "vue-router"
|
|
|
import { constRoutes, asyncComponents } from "./routers"
|
|
|
import NProgress from "@/plugin/nprogress"
|
|
|
import { ElMessage } from "element-plus"
|
|
@@ -8,7 +8,7 @@ import userStore from "@/store/modules/user"
|
|
|
|
|
|
const userStoreHook = userStore()
|
|
|
const router = createRouter({
|
|
|
- history: createWebHistory(process.env.BASE_URL),
|
|
|
+ history: createWebHashHistory(process.env.BASE_URL),
|
|
|
routes: constRoutes,
|
|
|
scrollBehavior() {
|
|
|
return { left: 0, top: 0 }
|