Commit e4148d9ba90c4699a57fb84170bb383821ac8bcd
1 parent
d09ee0c2
修改console输出
Showing
1 changed file
with
1 additions
and
1 deletions
web_src/src/main.js
| ... | ... | @@ -47,7 +47,7 @@ axios.interceptors.response.use(function (response) { |
| 47 | 47 | }, function (error) { |
| 48 | 48 | // 对响应错误做点什么 |
| 49 | 49 | if (error.response.status === 401) { |
| 50 | - console.log((1111)) | |
| 50 | + console.log("Received 401 Response") | |
| 51 | 51 | router.push('/login'); |
| 52 | 52 | } |
| 53 | 53 | return Promise.reject(error); | ... | ... |