wangting
2024-05-14 948a8b5fba4baf0a19493ae6d7b8a1dee0d4101a
Source/ProjectWeb/src/components/actions/handlers.js
@@ -1,5 +1,8 @@
//预置action
export const handlers = {
import Vue from "vue";
export const handlerAction=function (type,options, callback) {
  const handlers = {
  //查看
  view: () => {import("@/components/actions/base/ViewAction").then(module => {
    module.doAction(options,callback);
@@ -20,3 +23,9 @@
    module.doAction(options,callback);
  })},
};
  if (handlers[type]) {
    handlers[type]()
  } else {
    Vue.prototype.$message.error('未找到对应action,请重新配置按钮!');
  }
};