mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-07 09:57:37 +00:00
no message
This commit is contained in:
parent
1f7fca0c78
commit
883cd94a5e
@ -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")
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -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")
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -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)
|
||||
|
||||
5
resources/assets/js/store/actions.js
vendored
5
resources/assets/js/store/actions.js
vendored
@ -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")
|
||||
})
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user