lcl 7 ماه پیش
والد
کامیت
7a07c7a5d4
3فایلهای تغییر یافته به همراه8 افزوده شده و 8 حذف شده
  1. 2 2
      src/api/user.ts
  2. 4 4
      src/utils/getUrl/getUrl.js
  3. 2 2
      vite.config.ts

+ 2 - 2
src/api/user.ts

@@ -50,8 +50,8 @@ export type RefreshTokenResult = {
 export const getLogin = (data?: object) => {
   console.log(data);
   return http.login(
-    // "http://localhost:6101/v1/tel/sysServer/oauth2/token",
-    "https://logic-executor-api.kexiaoshuang.com/v1/tel/sysServer/oauth2/token",
+    "http://localhost:6101/v1/tel/sysServer/oauth2/token",
+    // "https://logic-executor-api.kexiaoshuang.com/v1/tel/sysServer/oauth2/token",
     data
   );
 };

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

@@ -64,8 +64,8 @@ const getURL = () => {
 const getAllPlate = () => {
   return new Promise(async (resolve, reject) => {
     postRequest(
-      // "http://localhost:6101/noauth/api/groupsforadmin",
-      "https://logic-executor-api.kexiaoshuang.com/noauth/api/groupsforadmin",
+      "http://localhost:6101/noauth/api/groupsforadmin",
+      // "https://logic-executor-api.kexiaoshuang.com/noauth/api/groupsforadmin",
       {
         key: "tel#2024"
       }
@@ -102,8 +102,8 @@ const getGroupUrl = async (checkPlate = []) => {
       );
     }, 5000);
     postRequest(
-      // "http://localhost:6101/noauth/api/listforadmin",
-      "https://logic-executor-api.kexiaoshuang.com/noauth/api/listforadmin",
+      "http://localhost:6101/noauth/api/listforadmin",
+      // "https://logic-executor-api.kexiaoshuang.com/noauth/api/listforadmin",
       parameters
     )
       .then(async res => {

+ 2 - 2
vite.config.ts

@@ -54,8 +54,8 @@ export default ({ command, mode }: ConfigEnv): UserConfigExport => {
       proxy: {
         "/aapi": {
           // 这里填写后端地址
-          // target: "http://localhost:6101",
-          target: "https://logic-executor-api.kexiaoshuang.com/",
+          target: "http://localhost:6101",
+          // target: "https://logic-executor-api.kexiaoshuang.com/",
           changeOrigin: true,
           rewrite: path => path.replace(/^\/aapi/, "")
         }