确认删除框

that.$msgBox
        .confirm({ message: "确认要删除吗" })
        .then(() => {

              that.$store.dispatch("dataLoading", true);

        })
        // eslint-disable-next-line no-unused-vars
        .catch(() => {
          that.$store.dispatch("dataLoading", false);
          //cancel
        });

提示框

that.$msgBox

import store from "../store/index";
let MsgBox = {
  // 删除 system
  alert(message) {

  },
  success(message) {

  },
  warning(message) {

  },
  error(message) {

  },
  confirm(msg) {
  }
};
文档更新时间: 2022-09-04 18:43   作者:admin