You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
416 B
17 lines
416 B
import Vue from 'vue';
|
|
// import Toast from '../wxcomponents/vant/toast/toast';
|
|
import Dialog from '../wxcomponents/vant/dialog/dialog';
|
|
// Vue.prototype.$toast = Toast
|
|
Vue.prototype.$toast = (msg) => {
|
|
uni.showToast({
|
|
title: msg,
|
|
icon: "none"
|
|
});
|
|
}
|
|
Vue.prototype.$toast.success=(msg)=>{
|
|
uni.showToast({
|
|
title: msg,
|
|
icon: "success"
|
|
});
|
|
}
|
|
Vue.prototype.$dialog = Dialog
|