如果加入之后
<van-dialog id="van-dialog" />
依旧报这个错误
那么应该加入{context:this}即可解决
Dialog.confirm({
title: '标题',
context: this,
message: '弹窗内容',
})
.then(() => {
})
.catch(() => {
return
});
如果加入之后
<van-dialog id="van-dialog" />
依旧报这个错误
那么应该加入{context:this}即可解决
Dialog.confirm({
title: '标题',
context: this,
message: '弹窗内容',
})
.then(() => {
})
.catch(() => {
return
});