action (get_action_cover
) 代码如下:
module.exports = {
before: async (state, event) => {
},
after: async (state, event, error, result) => {
if (error) {
throw error
}
result.msg="调用了 after"
return result
}
}
组件调用:
<uni-clientdb v-slot:default="{ loading, data, error }" collection="workout" where="day == 1" action="get_action_cover">
{{ data.msg }}
</uni-clientdb>
显示出来 undefined.
s***@foxmail.com (作者)
更新了组件和 HBuilderX, 确实好了...
2020-12-20 10:49