From 6467e7767f9ce6670a07dba061da523b022766ef Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Fri, 31 Oct 2025 15:17:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=AF=E7=94=B1=E6=A8=A1=E5=BC=8F=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E6=9C=80=E5=BC=80=E5=A7=8B=E7=9A=84hash?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E8=A7=A3=E5=86=B3=E5=92=8C=E5=90=8E=E7=AB=AF?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E5=9C=B0=E5=9D=80=E5=86=B2=E7=AA=81=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router/index.ts b/src/router/index.ts index 5aacc86..3930d07 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -676,7 +676,7 @@ export const constantRoutes: RouteRecordRaw[] = [ * 创建路由 */ const router = createRouter({ - history: createWebHistory(), + history: createWebHashHistory(), //使用哈希模式,避免前端路由和后端请求地址冲突问题,比如前端路由 /order/index 后端路由 /order* 会冲突导致刷新页面成了请求 routes: constantRoutes, // 刷新时,滚动条位置还原 scrollBehavior: () => ({ left: 0, top: 0 }),