From 1c79d5ea956b2239013b6b4cdfaf4e3ff5fc859c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=85=E6=88=BF?= Date: Wed, 17 Dec 2025 09:27:30 +0800 Subject: [PATCH] fix bugs --- vue.config.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vue.config.js b/vue.config.js index 402c752..a8425f4 100644 --- a/vue.config.js +++ b/vue.config.js @@ -10,6 +10,11 @@ module.exports = { // 静态资源目录 assetsDir: 'static', + // 公共路径 - 部署到服务器时的基础路径 + // 如果部署在根目录,使用 '/' + // 如果部署在子目录,使用 '/子目录名/' + publicPath: './', + devServer: { proxy: { // 代理所有 /api 开头的请求