Browse Source

修改主机头

lcl 2 months ago
parent
commit
a904916d41
4 changed files with 6 additions and 6 deletions
  1. 1 1
      src/api/user.ts
  2. 2 2
      src/utils/getUrl/getUrl.js
  3. 2 2
      src/utils/http/index.ts
  4. 1 1
      vite.config.ts

+ 1 - 1
src/api/user.ts

@@ -50,7 +50,7 @@ export type RefreshTokenResult = {
 export const getLogin = (data?: object) => {
   console.log(data);
   return http.login(
-    "http://makertest.yumuit.com/v1/kxs/sysServer/oauth2/token",
+    "http://app-manager.kexiaoshuang.com/v1/kxs/sysServer/oauth2/token",
     data
   );
 };

+ 2 - 2
src/utils/getUrl/getUrl.js

@@ -64,7 +64,7 @@ const getURL = () => {
 const getAllPlate = () => {
   return new Promise(async (resolve, reject) => {
     postRequest(
-      "http://makertest.yumuit.com/noauth/apiinfo/groupsforadmin",
+      "http://app-manager.kexiaoshuang.com/noauth/apiinfo/groupsforadmin",
       {
         key: "kxs#2024"
       }
@@ -99,7 +99,7 @@ const getGroupUrl = async (checkPlate = []) => {
       );
     }, 5000);
     postRequest(
-      "http://makertest.yumuit.com/noauth/apiinfo/listforadmin",
+      "http://app-manager.kexiaoshuang.com/noauth/apiinfo/listforadmin",
       parameters
     )
       .then(async res => {

+ 2 - 2
src/utils/http/index.ts

@@ -192,7 +192,7 @@ class PureHttp {
     axiosConfig?: PureHttpRequestConfig
   ): Promise<T> {
     //本地调试配置
-    // url = url.replace("http://makertest.yumuit.com", "/aapi")
+    // url = url.replace("http://app-manager.kexiaoshuang.com", "/aapi")
     const config = {
       method: "post",
       url:
@@ -236,7 +236,7 @@ class PureHttp {
     axiosConfig?: PureHttpRequestConfig
   ): any {
     //本地调试配置
-    // url = url.replace("http://makertest.yumuit.com", "/aapi")
+    // url = url.replace("http://app-manager.kexiaoshuang.com", "/aapi")
     const config = {
       method,
       url,

+ 1 - 1
vite.config.ts

@@ -54,7 +54,7 @@ export default ({ command, mode }: ConfigEnv): UserConfigExport => {
       proxy: {
         "/aapi": {
           // 这里填写后端地址
-          target: "http://makertest.yumuit.com",
+          target: "http://app-manager.kexiaoshuang.com",
           changeOrigin: true,
           rewrite: path => path.replace(/^\/aapi/, "")
         }