this.$refs使用组件里的方法失效
例如this.$refs.cModal.getShoppingVoucherList
在app中说此方法undefined
解决方法 使用$nextTick
this.$nextTick(()=>{
this.$refs.cModal.getShoppingVoucherList((data)=>{
})
})
例如this.$refs.cModal.getShoppingVoucherList
在app中说此方法undefined
解决方法 使用$nextTick
this.$nextTick(()=>{
this.$refs.cModal.getShoppingVoucherList((data)=>{
})
})