javascript - When using Mint-UI, this.$toast() can be used, but the this object does not see $toast. What's going on?
大家讲道理2017-06-12 09:31:38
0
1
845
In main.js: Vue.use(MintUI) Vue.use(VueRouter)
Use in the vue instance: console.log(this); You can see $route and $router, etc. I don’t see mintUI components such as $toast, but I can use this.$toast(); Where does the $toast here come from?
Open the
prototype
and see if there is any