登录后路径重置
This commit is contained in:
+2
-1
@@ -46,7 +46,8 @@ instance.interceptors.response.use(response => {
|
||||
if(response.data.code === 1000023){
|
||||
Toast('请验证手机号')
|
||||
const queryString = new URLSearchParams(query).toString();
|
||||
return router.push({ name: 'get-user-phone', query: { redirectPath: path, redirectPathQuery: encodeURIComponent(queryString)}});
|
||||
router.push({ name: 'get-user-phone', query: { redirectPath: path, redirectPathQuery: encodeURIComponent(queryString)}});
|
||||
return Promise.reject();
|
||||
}
|
||||
if(response.data.code !== 0){
|
||||
Toast.fail(response.data.message)
|
||||
|
||||
Reference in New Issue
Block a user