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