We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4475135 commit a5e1170Copy full SHA for a5e1170
web/src/utils/request.js
@@ -77,6 +77,9 @@ service.interceptors.response.use(
77
if (response.headers['new-token']) {
78
userStore.setToken(response.headers['new-token'])
79
}
80
+ if (typeof response.data.code === 'undefined') {
81
+ return response
82
+ }
83
if (response.data.code === 0 || response.headers.success === 'true') {
84
if (response.headers.msg) {
85
response.data.msg = decodeURI(response.headers.msg)
0 commit comments