|
|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
import { createWebHistory, createRouter } from 'vue-router'
|
|
|
|
|
import { createWebHistory,createWebHashHistory, createRouter } from 'vue-router'
|
|
|
|
|
/* Layout */
|
|
|
|
|
import Layout from '@/layout'
|
|
|
|
|
|
|
|
|
|
@ -161,7 +161,7 @@ export const dynamicRoutes = [
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
const router = createRouter({
|
|
|
|
|
history: createWebHistory(import.meta.env.VITE_APP_CONTEXT_PATH),
|
|
|
|
|
history: createWebHashHistory(import.meta.env.VITE_APP_CONTEXT_PATH),
|
|
|
|
|
routes: constantRoutes,
|
|
|
|
|
scrollBehavior(to, from, savedPosition) {
|
|
|
|
|
if (savedPosition) {
|
|
|
|
|
|