From 982bcc79bc9914149e238a12955ae6e2651e6226 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BB=E8=B0=B1?= <144224541+xixiIBN5100@users.noreply.github.com> Date: Thu, 5 Sep 2024 12:42:31 +0800 Subject: [PATCH] Update vite.config.ts --- vite.config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index b92e102..a59802a 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -15,6 +15,9 @@ export default defineConfig({ resolvers: [ElementPlusResolver()], }), ], + base: process.env.NODE_ENV === 'production' + ? 'https://img.lonesome.cn/jhwl/project/questionnaire/' + : '/', server: { proxy: { '/api': {