lisy 1 settimana fa
parent
commit
cece6ca031
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      src/utils/request.ts

+ 2 - 2
src/utils/request.ts

@@ -20,8 +20,8 @@ const getHeader = () => {
 
 // 获取host地址
 export const request = ({ url, method = 'GET', data = {}, isToken = true, header = null }: any) => {
-    // const baseUrl = import.meta.env.VITE_API_BASE_URL || 'http://192.168.1.26:8080';
-    const baseUrl = 'http://192.168.1.26:8888';
+    const baseUrl = import.meta.env.VITE_API_BASE_URL || 'http://192.168.1.26:8080';
+    // const baseUrl = 'http://192.168.1.26:8888';
     if (isToken && useInfoStore().isTokenExpired()) {
         uni.hideLoading();
         useInfoStore().removeToken();