预约面试功能开发
Some checks failed
Node CI / build (14.x, macOS-latest) (push) Has been cancelled
Node CI / build (14.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (14.x, windows-latest) (push) Has been cancelled
Node CI / build (16.x, macOS-latest) (push) Has been cancelled
Node CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (16.x, windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
coverage CI / build (push) Has been cancelled
Node pnpm CI / build (16.x, macOS-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, windows-latest) (push) Has been cancelled

This commit is contained in:
francis-fh
2026-06-24 18:18:42 +08:00
parent ebfb4fa580
commit 5ecce431db
14 changed files with 164 additions and 35 deletions

View File

@@ -15,8 +15,8 @@ export default {
// localhost:8000/api/** -> https://preview.pro.ant.design/api/**
'/api/': {
// 要代理的地址
target: 'http://39.98.44.136:6024/api/shihezi/',
// target: 'http://localhost:9091', // 本地代理
target: 'http://localhost:9091', // 本地开发环境
// target: 'http://39.98.44.136:6024/api/shihezi/', // 线上环境
// target: 'http://wykj.cdwsx.com/api',// 后端
// target: 'http://ks.zhaopinzao8dian.com/api/ks',
// 配置了这个可以从 http 代理到 https
@@ -26,20 +26,21 @@ export default {
// logLevel: 'debug',
},
'/profile/avatar/': {
target: 'http://36.105.163.21:30081/api/ks', // 发版
target: 'http://localhost:9091', // 本地开发环境
// target: 'http://36.105.163.21:30081/api/ks', // 发版
// target: 'http://wykj.cdwsx.com/api',
// target: 'http://ks.zhaopinzao8dian.com/api/ks',
changeOrigin: true,
},
'/app/': {
// 要代理的地址
target: 'http://36.105.163.21:30081/api/ks', // 发版
target: 'http://localhost:9091', // 本地开发环境
// target: 'http://36.105.163.21:30081/api/ks', // 发版
// target: 'http://wykj.cdwsx.com/api',
// target: 'http://ks.zhaopinzao8dian.com/api/ks',
// 配置了这个可以从 http 代理到 https
// 依赖 origin 的功能可能需要这个,比如 cookie
changeOrigin: true,
pathRewrite: { '^/api': '' },
},
},