This commit is contained in:
FengHui
2026-05-09 13:10:18 +08:00
parent 9e114cc5d3
commit 3fc587725a
2 changed files with 14 additions and 6 deletions

View File

@@ -189,10 +189,10 @@ export function createRequest(url, data = {}, method = 'GET', loading = false, h
}
// 显示具体的错误信息
const errorMsg = msg || '请求出现异常,请联系工作人员'
uni.showToast({
title: errorMsg,
icon: 'none'
})
// uni.showToast({
// title: errorMsg,
// icon: 'none'
// })
const err = new Error(errorMsg)
err.error = resData
reject(err)