fix: 配置文件,新增二级目录访问。

This commit is contained in:
tianyongbao
2024-09-19 12:17:31 +08:00
parent 1ecfed5d9f
commit 7eb7a0c064
4 changed files with 113 additions and 90 deletions

View File

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