在main.js中按需引入
import {
Toast
} from 'vant
Vue.use(Toast)
页面中的methods中使用
send(name, img) {
let msg = `${this.Cname}送${name}1`;
this.$toast({
message: msg,
icon: img
});
},
在main.js中按需引入
import {
Toast
} from 'vant
Vue.use(Toast)
页面中的methods中使用
send(name, img) {
let msg = `${this.Cname}送${name}1`;
this.$toast({
message: msg,
icon: img
});
},