fix
This commit is contained in:
parent
6d9cfe694b
commit
6f48d5a034
@ -7,7 +7,8 @@
|
|||||||
"dev:app-ios": "uni -p app-ios",
|
"dev:app-ios": "uni -p app-ios",
|
||||||
"dev:app-harmony": "uni -p app-harmony",
|
"dev:app-harmony": "uni -p app-harmony",
|
||||||
"dev:custom": "uni -p",
|
"dev:custom": "uni -p",
|
||||||
"dev:h5": "uni",
|
"dev:h5": "uni --mode dev",
|
||||||
|
"prod:h5": "uni --mode prod",
|
||||||
"dev:h5:ssr": "uni --ssr",
|
"dev:h5:ssr": "uni --ssr",
|
||||||
"dev:mp-alipay": "uni -p mp-alipay",
|
"dev:mp-alipay": "uni -p mp-alipay",
|
||||||
"dev:mp-baidu": "uni -p mp-baidu",
|
"dev:mp-baidu": "uni -p mp-baidu",
|
||||||
|
@ -3,7 +3,7 @@ import useToast from "@/hooks/toast/useToast.js";
|
|||||||
const { showMessage } = useToast();
|
const { showMessage } = useToast();
|
||||||
|
|
||||||
const request = new Request({
|
const request = new Request({
|
||||||
baseURL: "http://114.218.158.24:9020/",
|
baseURL: import.meta.env.VITE_API_URL,
|
||||||
timeout: 1000 * 60 * 5,
|
timeout: 1000 * 60 * 5,
|
||||||
interceptors: {
|
interceptors: {
|
||||||
//实例的请求拦截器
|
//实例的请求拦截器
|
||||||
@ -24,8 +24,6 @@ const request = new Request({
|
|||||||
},
|
},
|
||||||
//实例的响应拦截器
|
//实例的响应拦截器
|
||||||
responseInterceptors: async (response) => {
|
responseInterceptors: async (response) => {
|
||||||
console.log(1231231,import.meta.env.VITE_API_URL)
|
|
||||||
|
|
||||||
if (response.data.status === 1) {
|
if (response.data.status === 1) {
|
||||||
showMessage({ type: "error", message: response.data.msg });
|
showMessage({ type: "error", message: response.data.msg });
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user