From 20cfb19d192127e304a081ceb60ca9052f813bf7 Mon Sep 17 00:00:00 2001 From: he wei <858544502@qq.com> Date: 星期三, 15 一月 2025 13:32:43 +0800 Subject: [PATCH] U 修改完成 --- vite.config.ts | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 3001da0..0a40284 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -3,7 +3,7 @@ import { defineConfig, loadEnv } from 'vite'; import vue from '@vitejs/plugin-vue'; - +import VueSetupExtend from 'vite-plugin-vue-setup-extend'; import Inspect from 'vite-plugin-inspect'; // element plus 鏍峰紡鑷姩鎸夐渶瀵煎叆 @@ -23,7 +23,7 @@ const prodMock = true; return { - base: '/', // 娉ㄦ剰锛屽繀椤讳互"/"缁撳熬锛孊ASE_URL閰嶇疆 + base: './', // 娉ㄦ剰锛屽繀椤讳互"/"缁撳熬锛孊ASE_URL閰嶇疆 build: { outDir: '../hm-lock-sys/public' }, @@ -39,6 +39,7 @@ plugins: [ vue(), Inspect(), + VueSetupExtend(), AutoImport({ resolvers: [ElementPlusResolver()] }), @@ -68,6 +69,9 @@ }) ], server: { + // https: true, + // key: './key.pem', + // cert: './cert.pem', host: 'localhost', port: 8001 } -- Gitblit v1.9.1