<template>
<view>
<feeds :spaceCode="spaceCode" @onRenderSuccess="advuccess" @onRenderFail="advFail" @onSaveRef="advRef">
<view slot="header">slot标题</view>
</feeds>
</view>
</template>
<script>
export default {
data() {
return {
spaceCode: '' //展位码
}
},
onLoad() {
},
methods: {
advSuccess(res) {
console.log('onRenderSuccess---------------------------', res)
},
advFail(res) {
console.log('onRenderFail', res)
},
advRef(ref) {
console.log('onSaveRef---------')
this.feeds = ref;
},
}
}
</script>
4***@qq.com (作者)
下载了HBuilderX.3.4.2.20220310-alpha,运行编译的时候一直报错
2022-03-24 16:46
DCloud_UNI_GSQ
回复 4***@qq.com: 什么错
2022-03-24 16:50
4***@qq.com (作者)
回复 DCloud_UNI_GSQ: onRenderSuccess和onRenderFail有触发了,onSaveRef提示事件信息不存在,请问怎么解决?
2022-03-27 16:37
DCloud_UNI_GSQ
回复 4***@qq.com: 已在你另一个帖子回复
2022-03-30 15:28