使用vant中的toast报错
index.vue?0dbc:332 Uncaught (in promise) ReferenceError: Toast is not defined
错误代码是这样写的:
修改后:
this.$toast.fail(res.msg);
查看vant中api:
使用vant中的toast报错
index.vue?0dbc:332 Uncaught (in promise) ReferenceError: Toast is not defined
错误代码是这样写的:
修改后:
this.$toast.fail(res.msg);
查看vant中api: