Explorar el Código

修改js_event模板

master
FLYPHT hace 2 años
padre
commit
c35474710f
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  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 fichero

@@ -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,
}
}
});
});

Cargando…
Cancelar
Guardar