onClose(event) { console.log(event) const { position, instance } = event.detail; switch (position) { case 'left': wx.navigateTo({ url: '../edit/edit' /**记得改 转到修改页面 */ }) case 'cell': instance.close(); break; case 'right': Dialog.confirm({ message: '确定删除吗?' }).then(() => { instance.close(); }); break; } },
调用vant组件的滑动单元格 右滑点击删除要弹出提示框的时候出现这个问题如何解决?Cannot read property 'confirm' of undefined; [Component] Event Listener Error @ vant-weapp/dist/swipe-cell/index#(anonymous)
2020-04-27