This commit is contained in:
hackrobot
2024-10-04 18:59:37 +08:00
parent 255b722242
commit af1a72d359
11 changed files with 34 additions and 30 deletions

View File

@@ -85,10 +85,10 @@ const config = {
// host: 'nomad.hackrobot.cn', // 替换为您的域名
// port: 10087, // 选择一个适当的端口号
proxy: {
'/api/': {
'${TARO_APP_API}/': {
target: JSON.parse('"http://localhost:8700"'), //本地调试端口
pathRewrite: {
'^/api/': '/'
'^${TARO_APP_API}/': '/'
},
changeOrigin: true
}