From 71be3b558c27ef00c4afadb1b28246f064fb7ac3 Mon Sep 17 00:00:00 2001 From: LiLongLong <13717757313@163.com> Date: Thu, 6 Mar 2025 00:58:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B7=AF=E7=94=B1=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index 38206ac..c5747a6 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -1,4 +1,4 @@ -import { createRouter, createWebHistory } from "vue-router"; +import { createRouter, createWebHashHistory } from "vue-router"; import HomeView from "../views/HomeView.vue"; import Login from "@/views/Login.vue"; import Index from "@/views/Index.vue"; @@ -12,7 +12,7 @@ import MatrixManage from "../views/matrixManage/matrixList.vue"; import History from "@/views/History.vue"; const router = createRouter({ - history: createWebHistory(import.meta.env.BASE_URL), + history: createWebHashHistory(import.meta.env.BASE_URL),//createWebHashHistory模式在ngix刷新后报404 routes: [ { path: "/",