vant 版本:
"name": "vant",
"version": "2.13.2",
vant 按需引入
import Vue from 'vue'
import { Button, Tabbar, TabbarItem, NavBar, Toast } from 'vant'
Vue.use(Toast)
Vue.use(NavBar)
Vue.use(Tabbar)
Vue.use(TabbarItem)
Vue.use(Button)
mian中注册
import '@/utils/vant'
异常代码?
login.vue:58 Uncaught (in promise) TypeError: this.$toast is not a function
at VueComponent.getPicCode (login.vue:58:1)
前端小白真心求问各位大佬
"name": "vant",
"version": "2.13.2",
vant 按需引入
import Vue from 'vue'
import { Button, Tabbar, TabbarItem, NavBar, Toast } from 'vant'
Vue.use(Toast)
Vue.use(NavBar)
Vue.use(Tabbar)
Vue.use(TabbarItem)
Vue.use(Button)
mian中注册
import '@/utils/vant'
异常代码?
login.vue:58 Uncaught (in promise) TypeError: this.$toast is not a function
at VueComponent.getPicCode (login.vue:58:1)
前端小白真心求问各位大佬