merge
This commit is contained in:
@@ -140,8 +140,6 @@ export const Request = async (url, data, type, noloading, noerror) => {
|
||||
} else {
|
||||
Storage.clear()
|
||||
weui.alert("错误的请求")
|
||||
window.location.reload()
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
@@ -193,7 +191,7 @@ export const Request = async (url, data, type, noloading, noerror) => {
|
||||
} else if (response.status == 401) {
|
||||
Storage.clear()
|
||||
weui.alert("错误的请求")
|
||||
window.location.reload()
|
||||
// window.location.reload()
|
||||
return
|
||||
} else {
|
||||
if (!noerror) {
|
||||
@@ -226,7 +224,6 @@ export const RequestImg = async (url, data, type, noloading, noerror) => {
|
||||
} else {
|
||||
Storage.clear()
|
||||
weui.alert("错误的请求")
|
||||
window.location.reload()
|
||||
return
|
||||
}
|
||||
}
|
||||
@@ -279,7 +276,7 @@ export const RequestImg = async (url, data, type, noloading, noerror) => {
|
||||
} else if (response.status == 401) {
|
||||
Storage.clear()
|
||||
weui.alert("错误的请求")
|
||||
window.location.reload()
|
||||
// window.location.reload()
|
||||
return
|
||||
} else {
|
||||
if (!noerror) {
|
||||
|
||||
Reference in New Issue
Block a user