Browse Source

修复前端needInit报错导致的逻辑问题

main
pixel 4 years ago
parent
commit
06c6617a78
  1. 2
      web/src/utils/request.js

2
web/src/utils/request.js

@ -66,7 +66,7 @@ service.interceptors.response.use(
store.commit('user/setToken', response.headers["new-token"]) store.commit('user/setToken', response.headers["new-token"])
} }
if(response.data.code == 0){ if(response.data.code == 0){
if(response.data.data.needInit){
if(response.data.data?.needInit){
Message({ Message({
type:"info", type:"info",
message:"您是第一次使用,请初始化" message:"您是第一次使用,请初始化"

Loading…
Cancel
Save