微信支付
This commit is contained in:
@@ -72,10 +72,10 @@ api.interceptors.response.use(
|
||||
// 判断当前是否在代理相关页面
|
||||
const currentPath = router.currentRoute.value.path
|
||||
if (currentPath.startsWith('/agent')) {
|
||||
router.push('/agent/login')
|
||||
router.push('/agent/mylogin')
|
||||
ElMessage.error('代理登录已过期,请重新登录')
|
||||
} else {
|
||||
router.push({ name: 'Login' })
|
||||
router.push({ name: 'MyLogin' })
|
||||
ElMessage.error('登录已过期,请重新登录')
|
||||
}
|
||||
break
|
||||
@@ -86,7 +86,7 @@ api.interceptors.response.use(
|
||||
// 清除token并跳转到登录页
|
||||
localStorage.removeItem('token')
|
||||
delete api.defaults.headers.common['Authorization']
|
||||
router.push({ name: 'Login' })
|
||||
router.push({ name: 'MyLogin' })
|
||||
ElMessage.error(data.message || '账户已被拉黑,请联系管理员')
|
||||
} else if (data.code === 'PAYMENT_REQUIRED') {
|
||||
// 需要支付,跳转到支付页面
|
||||
|
||||
Reference in New Issue
Block a user