在main.js中做如下操作(后续需要什么组件都要放进来):
main.js
import {Button} from 'vant'; Vue.use(Button)
如此:在需要的页面中就可以直接使用,页面当中也无需再次引入