diff --git a/web/.umirc.ts b/web/.umirc.ts index ec05621cbfaa33734e97846a8d8b88b982026970..84afb1a4b05e9f3a1f369ad67a798e953489c3e7 100644 --- a/web/.umirc.ts +++ b/web/.umirc.ts @@ -21,11 +21,11 @@ export default defineConfig({ hack: `true; @import "~@/less/variable.less";`, }, }, - // proxy: { - // '/v1': { - // 'target': 'http://54.80.112.79:9380/', - // 'changeOrigin': true, - // 'pathRewrite': { '^/v1': '/v1' }, - // }, - // }, + proxy: { + '/v1': { + target: 'http://123.60.95.134:9380/', + changeOrigin: true, + // pathRewrite: { '^/v1': '/v1' }, + }, + }, }); diff --git a/web/src/utils/api.ts b/web/src/utils/api.ts index 3a1169e9427b5eb5300cb4168395e881fce5deed..033c906e2a54853ba080729fcb547f1bc629bedd 100644 --- a/web/src/utils/api.ts +++ b/web/src/utils/api.ts @@ -1,4 +1,4 @@ -let api_host = `http://123.60.95.134:9380/v1`; +let api_host = `/v1`; export { api_host };