@ebiz/designer-components 0.0.18-beta.42 → 0.0.18-beta.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -115,7 +115,7 @@ const click = async (e) => {
|
|
115
115
|
emit('loading', true)
|
116
116
|
|
117
117
|
// 调用前置处理并获取返回值
|
118
|
-
const shouldContinue = props.onPrepare()
|
118
|
+
const shouldContinue = await Promise.resolve(props.onPrepare())
|
119
119
|
emit('prepare', shouldContinue)
|
120
120
|
|
121
121
|
// 只有当返回值明确为false时才中断,undefined或其他值都继续执行
|