|
|
@@ -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();
|