郑根木 2 年之前
父節點
當前提交
96563776dd
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. +4
    -3
      smtweb-framework/bpm/src/main/resources/static/template/js_event.ftl

+ 4
- 3
smtweb-framework/bpm/src/main/resources/static/template/js_event.ftl 查看文件

@@ -4,8 +4,9 @@
*/
window.$swEvent.setup("${eventPath}", {
setup(page){
const { $params,$refs, $widgets, $model, $utils, $tabRouter, $api } = page;
const { $$message, $$http } = $utils;
const { $params,$refs, $widgets, $model, $utils, $tabRouter, $api } = page || {};
const { $$message, $$http } = $utils || {};

// 示例
const demoFunc = () => {

@@ -14,4 +15,4 @@ window.$swEvent.setup("${eventPath}", {
demoFunc,
}
}
});
});

Loading…
取消
儲存