mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-18 03:33:24 +00:00
no message
This commit is contained in:
parent
1f7fca0c78
commit
883cd94a5e
@ -248,14 +248,12 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.openIng = true
|
this.openIng = true
|
||||||
this.$store.dispatch("showSpinner", 600)
|
|
||||||
this.$store.dispatch("openDialogUserid", userid).then(_ => {
|
this.$store.dispatch("openDialogUserid", userid).then(_ => {
|
||||||
this.$emit("on-close")
|
this.$emit("on-close")
|
||||||
}).catch(({msg}) => {
|
}).catch(({msg}) => {
|
||||||
$A.modalError(msg)
|
$A.modalError(msg)
|
||||||
}).finally(_ => {
|
}).finally(_ => {
|
||||||
this.openIng = false
|
this.openIng = false
|
||||||
this.$store.dispatch("hiddenSpinner")
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -36,14 +36,12 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.openIng = true
|
this.openIng = true
|
||||||
this.$store.dispatch("showSpinner", 600)
|
|
||||||
this.$store.dispatch("openDialogUserid", userid).then(_ => {
|
this.$store.dispatch("openDialogUserid", userid).then(_ => {
|
||||||
this.$emit("on-close")
|
this.$emit("on-close")
|
||||||
}).catch(({msg}) => {
|
}).catch(({msg}) => {
|
||||||
$A.modalError(msg)
|
$A.modalError(msg)
|
||||||
}).finally(_ => {
|
}).finally(_ => {
|
||||||
this.openIng = false
|
this.openIng = false
|
||||||
this.$store.dispatch("hiddenSpinner")
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -545,11 +545,8 @@ export default {
|
|||||||
this.dialogKey = "";
|
this.dialogKey = "";
|
||||||
//
|
//
|
||||||
if ($A.isJson(dialogId) && $A.leftExists(dialogId.dialog_id, "u:")) {
|
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}) => {
|
this.$store.dispatch("openDialogUserid", $A.leftDelete(dialogId.dialog_id, "u:")).catch(({msg}) => {
|
||||||
$A.modalError(msg)
|
$A.modalError(msg)
|
||||||
}).finally(_ => {
|
|
||||||
this.$store.dispatch("hiddenSpinner")
|
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$store.dispatch("openDialog", dialogId)
|
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);
|
resolve(dialog);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
dispatch("showSpinner", 600)
|
||||||
dispatch("call", {
|
dispatch("call", {
|
||||||
url: 'dialog/open/user',
|
url: 'dialog/open/user',
|
||||||
data: {
|
data: {
|
||||||
@ -2302,7 +2303,9 @@ export default {
|
|||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
console.warn(e);
|
console.warn(e);
|
||||||
reject(e);
|
reject(e);
|
||||||
});
|
}).finally(_ => {
|
||||||
|
dispatch("hiddenSpinner")
|
||||||
|
})
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user