From 0f4f2c239e58744f17c3a9c9e1058137f6adc7f9 Mon Sep 17 00:00:00 2001 From: molong Date: Fri, 16 Jan 2026 14:25:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 742fa7f..209da8a 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,4 +1,4 @@ -import { createRouter, createWebHistory } from 'vue-router' +import { createRouter, createWebHashHistory } from 'vue-router' import NProgress from 'nprogress' import 'nprogress/nprogress.css' import config from '../config' @@ -28,7 +28,7 @@ const notFoundRoute = { // 创建路由实例 const router = createRouter({ - history: createWebHistory(import.meta.env.BASE_URL), + history: createWebHashHistory(), routes: systemRoutes }) @@ -225,7 +225,7 @@ export function resetRouter() { // 重置为初始路由 const newRouter = createRouter({ - history: createWebHistory(import.meta.env.BASE_URL), + history: createWebHashHistory(), routes: systemRoutes })