This commit is contained in:
2026-01-16 14:25:45 +08:00
parent b6bb8a6deb
commit 0f4f2c239e

View File

@@ -1,4 +1,4 @@
import { createRouter, createWebHistory } from 'vue-router' import { createRouter, createWebHashHistory } from 'vue-router'
import NProgress from 'nprogress' import NProgress from 'nprogress'
import 'nprogress/nprogress.css' import 'nprogress/nprogress.css'
import config from '../config' import config from '../config'
@@ -28,7 +28,7 @@ const notFoundRoute = {
// 创建路由实例 // 创建路由实例
const router = createRouter({ const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL), history: createWebHashHistory(),
routes: systemRoutes routes: systemRoutes
}) })
@@ -225,7 +225,7 @@ export function resetRouter() {
// 重置为初始路由 // 重置为初始路由
const newRouter = createRouter({ const newRouter = createRouter({
history: createWebHistory(import.meta.env.BASE_URL), history: createWebHashHistory(),
routes: systemRoutes routes: systemRoutes
}) })