🎈 perf(订单详情页没有找到订单跳回首页):

This commit is contained in:
czm 2022-11-26 14:22:50 +08:00
parent 48f054517f
commit 532dd4b73d
2 changed files with 7 additions and 1 deletions

View File

@ -250,7 +250,7 @@ export default ({ show = false, onClose, intoStatus = 'shop', default_sale_mode
setParam({ ids, sale_mode: selectIndex }) //临时存储
closePopup()
if (intoStatus == 'again') {
goLink('/pages/order/comfirm', {}, 'redirectTo')
goLink('/pages/order/comfirm', null, 'redirectTo')
} else {
goLink('/pages/order/comfirm')
}

View File

@ -168,10 +168,16 @@ export const useRequest = (
stateRef.current.data = data
stateRef.current.total = data?.list ? data?.total : 0
if (code !== 0) {
if (code === 50332) {
Taro.switchTab({
url: '/pages/index/index',
})
}
options.apiMsgStatus !== false &&
Taro.showToast({
title: `${msg}`,
icon: 'none',
duration: 3000,
})
console.log('错误::', msg)
}