This commit is contained in:
2025-12-17 09:27:30 +08:00
parent 78291bb76b
commit 1c79d5ea95

View File

@@ -10,6 +10,11 @@ module.exports = {
// 静态资源目录 // 静态资源目录
assetsDir: 'static', assetsDir: 'static',
// 公共路径 - 部署到服务器时的基础路径
// 如果部署在根目录,使用 '/'
// 如果部署在子目录,使用 '/子目录名/'
publicPath: './',
devServer: { devServer: {
proxy: { proxy: {
// 代理所有 /api 开头的请求 // 代理所有 /api 开头的请求