修复一些问题以及优惠券管理功能
This commit is contained in:
@@ -53,13 +53,13 @@ const handleTokenExpired = () => {
|
||||
sessionStorage.removeItem('accessToken')
|
||||
showError('登录已过期,请重新登录')
|
||||
try {
|
||||
router.push('/auth').catch(err => {
|
||||
router.push('/').catch(err => {
|
||||
console.error('跳转到登录页失败:', err)
|
||||
window.location.href = '/auth'
|
||||
window.location.href = '/'
|
||||
})
|
||||
} catch (err) {
|
||||
console.error('跳转到登录页异常:', err)
|
||||
window.location.href = '/auth'
|
||||
window.location.href = '/'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user