🎈 perf(订单详情页没有找到订单跳回首页):
This commit is contained in:
parent
48f054517f
commit
532dd4b73d
@ -250,7 +250,7 @@ export default ({ show = false, onClose, intoStatus = 'shop', default_sale_mode
|
|||||||
setParam({ ids, sale_mode: selectIndex }) //临时存储
|
setParam({ ids, sale_mode: selectIndex }) //临时存储
|
||||||
closePopup()
|
closePopup()
|
||||||
if (intoStatus == 'again') {
|
if (intoStatus == 'again') {
|
||||||
goLink('/pages/order/comfirm', {}, 'redirectTo')
|
goLink('/pages/order/comfirm', null, 'redirectTo')
|
||||||
} else {
|
} else {
|
||||||
goLink('/pages/order/comfirm')
|
goLink('/pages/order/comfirm')
|
||||||
}
|
}
|
||||||
|
@ -168,10 +168,16 @@ export const useRequest = (
|
|||||||
stateRef.current.data = data
|
stateRef.current.data = data
|
||||||
stateRef.current.total = data?.list ? data?.total : 0
|
stateRef.current.total = data?.list ? data?.total : 0
|
||||||
if (code !== 0) {
|
if (code !== 0) {
|
||||||
|
if (code === 50332) {
|
||||||
|
Taro.switchTab({
|
||||||
|
url: '/pages/index/index',
|
||||||
|
})
|
||||||
|
}
|
||||||
options.apiMsgStatus !== false &&
|
options.apiMsgStatus !== false &&
|
||||||
Taro.showToast({
|
Taro.showToast({
|
||||||
title: `${msg}`,
|
title: `${msg}`,
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
|
duration: 3000,
|
||||||
})
|
})
|
||||||
console.log('错误::', msg)
|
console.log('错误::', msg)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user