Files
Yi.Framework/Yi.Vue/src/util/dialog.js
2021-10-11 15:45:59 +08:00

13 lines
284 B
JavaScript

function notify(resp) {
if (resp.status) {
this.$dialog.notify.success(resp.msg, {
position: "top-right",
});
} else {
this.$dialog.notify.error(resp.msg, {
position: "top-right",
});
}
};
export default { notify };