Ver a proveniência

修改js_event模板

master
FLYPHT há 2 anos
ascendente
cometimento
c35474710f
1 ficheiros alterados com 3 adições e 3 eliminações
  1. +3
    -3
      smtweb-framework/sw-system-bpm/src/main/resources/static/template/js_event.ftl

+ 3
- 3
smtweb-framework/sw-system-bpm/src/main/resources/static/template/js_event.ftl Ver ficheiro

@@ -4,8 +4,8 @@
*/
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 +14,4 @@ window.$swEvent.setup("${eventPath}", {
demoFunc,
}
}
});
});

Carregando…
Cancelar
Guardar