Skip to content

Commit

Permalink
修复前端needInit报错导致的逻辑问题
Browse files Browse the repository at this point in the history
  • Loading branch information
pixel committed Apr 16, 2021
1 parent a5a2250 commit 06c6617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/utils/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ service.interceptors.response.use(
store.commit('user/setToken', response.headers["new-token"])
}
if(response.data.code == 0){
if(response.data.data.needInit){
if(response.data.data?.needInit){
Message({
type:"info",
message:"您是第一次使用,请初始化"
Expand Down

0 comments on commit 06c6617

Please sign in to comment.