From e3046b68a718eff882a8c4d89f1df18a07dd4a80 Mon Sep 17 00:00:00 2001
From: sirc <sirrcvip@126.com>
Date: 星期五, 21 十一月 2025 10:13:22 +0800
Subject: [PATCH] 打包配置hash相对路径
---
src/router/index.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/router/index.js b/src/router/index.js
index f4b2afd..4f16ebc 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -1,8 +1,8 @@
-import { createRouter, createWebHistory } from 'vue-router';
+import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router';
import HomeView from '../views/HomeView.vue';
const router = createRouter({
- history: createWebHistory(import.meta.env.BASE_URL),
+ history: createWebHashHistory(import.meta.env.BASE_URL),
routes: [
{
path: '/',
--
Gitblit v1.8.0