Commit 2228cfc7 by hank

100100 提出

parent d9bc19fd
...@@ -46,7 +46,12 @@ axios.interceptors.response.use( ...@@ -46,7 +46,12 @@ axios.interceptors.response.use(
position: 'center', position: 'center',
duration: 2 * 1000 duration: 2 * 1000
}) })
return Promise.reject(response) if(response.data.code == 100100 || response.data.code == 100101) {
store.dispatch('getAuth').then()
}
return Promise.reject(new Error({
response
}))
throw new Error({ throw new Error({
response response
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment