|
@ -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:"您是第一次使用,请初始化" |
|
|