修复预请求bug
This commit is contained in:
@@ -199,8 +199,6 @@ const userHabit : Module<UserHabit,RootState> = {
|
|||||||
|
|
||||||
},
|
},
|
||||||
setUserDetail(state,data){
|
setUserDetail(state,data){
|
||||||
console.log(data.country , state.userDetail.country ,
|
|
||||||
data.occupation ,state.userDetail.occupation);
|
|
||||||
if(
|
if(
|
||||||
(!data.email && state.userDetail.email == '-------------') ||
|
(!data.email && state.userDetail.email == '-------------') ||
|
||||||
(!data.country && !state.userDetail.country) ||
|
(!data.country && !state.userDetail.country) ||
|
||||||
@@ -346,7 +344,9 @@ const userHabit : Module<UserHabit,RootState> = {
|
|||||||
let getUserDetail = ()=>{
|
let getUserDetail = ()=>{
|
||||||
return new Promise((resolve,reject) => {
|
return new Promise((resolve,reject) => {
|
||||||
Https.axiosPost(Https.httpUrls.accountDetail).then((rv: any) => {
|
Https.axiosPost(Https.httpUrls.accountDetail).then((rv: any) => {
|
||||||
context.commit('setUserDetail',rv)
|
if(rv){
|
||||||
|
context.commit('setUserDetail',rv)
|
||||||
|
}
|
||||||
resolve('')
|
resolve('')
|
||||||
}).catch(()=>{
|
}).catch(()=>{
|
||||||
reject('')
|
reject('')
|
||||||
|
|||||||
Reference in New Issue
Block a user