build(config): 更新管理后台路径和代理设置- 修改 src/config/index.js 中的 admin 路径为 '/backmanage/'- 更新 .env.dev 文件中的 VUE_APP_ADMIN 地址为测试环境的 HTTPS 地址- 在 vue.config.js 中添加代理设置,将 /api 请求代理到 VUE_APP_ADMIN 指定的地址

This commit is contained in:
陈昱达
2025-08-26 15:42:16 +08:00
parent 80dac79c8d
commit 6d461d9c8e
3 changed files with 11 additions and 2 deletions

View File

@@ -14,6 +14,15 @@ module.exports = {
devServer: {
https: false,
},
proxy: {
'/api': {
target: process.env.VUE_APP_ADMIN,
changeOrigin: true,
pathRewrite: {
'^/api': '/',
},
},
},
css: {
sourceMap: true, // 查看css属于哪个css文件
loaderOptions: {