Skip to content

Commit

Permalink
request.js
Browse files Browse the repository at this point in the history
  • Loading branch information
star7th committed Jun 4, 2020
1 parent 4c46a3a commit 121c5b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web_src/src/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ axios.interceptors.response.use(
path: '/user/login',
query: { redirect: router.currentRoute.fullPath }
})
} else if (response.data.error_code !== 0) {
} else if (response.data && response.data.error_code !== 0) {
MessageBox.alert(response.data.error_message)
return Promise.reject(new Error('something bad happened'))
}
Expand Down

0 comments on commit 121c5b5

Please sign in to comment.