From 79f9e13272c00a6d6a4fae7153a89f53257e9099 Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期四, 13 二月 2025 09:32:03 +0800 Subject: [PATCH] base --- vite.config.ts | 2 ++ src/router/index.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index cf1bad6..be71caa 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -1,7 +1,7 @@ import { createRouter, createWebHistory } from 'vue-router'; const router = createRouter({ - history: createWebHistory(import.meta.env.BASE_URL), + history: createWebHistory('./'), routes: [ { path: '/', diff --git a/vite.config.ts b/vite.config.ts index 31e31f8..b96a538 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -26,6 +26,7 @@ })], imports: ['vue', '@vueuse/core', 'vue-router', 'pinia'], }), + Components({ resolvers: [ ElementPlusResolver({ @@ -40,6 +41,7 @@ open: false, //濡傛灉瀛樺湪鏈湴鏈嶅姟绔彛锛屽皢鍦ㄦ墦鍖呭悗鑷姩灞曠ず }), ], + base:'./', resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)), -- Gitblit v1.9.3