2 Commits 6131aec06d ... f243b05c3a

Author SHA1 Message Date
  Yi f243b05c3a feat(components): cicd5 5 months ago
  Yi 6131aec06d feat(components): cicd5 5 months ago
1 changed files with 8 additions and 3 deletions
  1. 8 3
      src/service/request/index.ts

+ 8 - 3
src/service/request/index.ts

@@ -5,9 +5,14 @@ const { url, proxyPattern } = getServiceEnvConfig(import.meta.env);
 
 const isHttpProxy = import.meta.env.VITE_HTTP_PROXY === 'Y';
 
-export const request = createRequest({ baseURL: isHttpProxy ? proxyPattern : url });
+export const request = createRequest({
+  baseURL: isHttpProxy ? proxyPattern : url
+});
 
 export const mockRequest = createRequest({ baseURL: '/mock' });
 
-// export const backgroundRequest = createRequest({ baseURL: 'http://vernamq8085.kptyun.com/api/v1' });
-export const backgroundRequest = createRequest({ baseURL: 'http://192.168.1.96:8000/api/v1' });
+export const backgroundRequest = createRequest({
+  baseURL: 'http://vernamq8085.kptyun.com/api/v1'
+});
+/* export const backgroundRequest = createRequest({ baseURL: 'http://192.168.1.96:8000/api/v1' });
+ */