admin 管理员组

文章数量: 1184232

vant

出错代码:

Dialog.confirm({message: '是否确认',
}).then(() => {instance.close();
});

修改后:

Dialog.confirm({context: this,message: '是否确认',
}).then(() => {instance.close();
});

主要就是context的指向问题,调用的时候添加context: this就行了。

本文标签: vant