no message

This commit is contained in:
kuaifan 2023-03-04 15:02:11 +08:00
parent 1f7fca0c78
commit 883cd94a5e
4 changed files with 4 additions and 8 deletions

View File

@ -248,14 +248,12 @@ export default {
return
}
this.openIng = true
this.$store.dispatch("showSpinner", 600)
this.$store.dispatch("openDialogUserid", userid).then(_ => {
this.$emit("on-close")
}).catch(({msg}) => {
$A.modalError(msg)
}).finally(_ => {
this.openIng = false
this.$store.dispatch("hiddenSpinner")
});
}
}

View File

@ -36,14 +36,12 @@ export default {
return
}
this.openIng = true
this.$store.dispatch("showSpinner", 600)
this.$store.dispatch("openDialogUserid", userid).then(_ => {
this.$emit("on-close")
}).catch(({msg}) => {
$A.modalError(msg)
}).finally(_ => {
this.openIng = false
this.$store.dispatch("hiddenSpinner")
});
}
}

View File

@ -545,11 +545,8 @@ export default {
this.dialogKey = "";
//
if ($A.isJson(dialogId) && $A.leftExists(dialogId.dialog_id, "u:")) {
this.$store.dispatch("showSpinner", 300)
this.$store.dispatch("openDialogUserid", $A.leftDelete(dialogId.dialog_id, "u:")).catch(({msg}) => {
$A.modalError(msg)
}).finally(_ => {
this.$store.dispatch("hiddenSpinner")
})
} else {
this.$store.dispatch("openDialog", dialogId)

View File

@ -2290,6 +2290,7 @@ export default {
resolve(dialog);
return;
}
dispatch("showSpinner", 600)
dispatch("call", {
url: 'dialog/open/user',
data: {
@ -2302,7 +2303,9 @@ export default {
}).catch(e => {
console.warn(e);
reject(e);
});
}).finally(_ => {
dispatch("hiddenSpinner")
})
});
},