diff --git a/src/components/shopCart/index.tsx b/src/components/shopCart/index.tsx index 5db1201..ca6a9d7 100644 --- a/src/components/shopCart/index.tsx +++ b/src/components/shopCart/index.tsx @@ -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') } diff --git a/src/use/useHttp.ts b/src/use/useHttp.ts index 89ca698..c78955d 100644 --- a/src/use/useHttp.ts +++ b/src/use/useHttp.ts @@ -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) }