diff --git a/src/cool/config/dev.ts b/src/cool/config/dev.ts index f56f29c..aa098b3 100644 --- a/src/cool/config/dev.ts +++ b/src/cool/config/dev.ts @@ -3,7 +3,7 @@ import { proxy } from "./proxy"; export default { // 根地址 - host: proxy["/dev"], + host: proxy["/dev"].target, // 请求地址 get baseUrl() { diff --git a/src/cool/config/prod.ts b/src/cool/config/prod.ts index ebbd862..70af2d1 100644 --- a/src/cool/config/prod.ts +++ b/src/cool/config/prod.ts @@ -2,7 +2,7 @@ import { proxy } from "./proxy"; export default { // 根地址 - host: proxy["/prod"], + host: proxy["/prod"].target, // 请求地址 baseUrl: "/api"