shaogen1995 1 year ago
parent
commit
d0fa404d56
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/utils/http.ts

+ 1 - 1
src/utils/http.ts

@@ -30,7 +30,7 @@ declare module "axios" {
 
 
 // 创建 axios 实例
 // 创建 axios 实例
 const http = axios.create({
 const http = axios.create({
-  baseURL: `${baseUrlTemp}${baseFlag ? "/api/" : ""}`,
+  baseURL: `${baseURL}${baseFlag ? "/api/" : ""}`,
   timeout: 20000,
   timeout: 20000,
 });
 });