Home  >  Q&A  >  body text

javascript - When using Mint-UI, this.$toast() can be used, but the this object does not see $toast. What's going on?

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?

大家讲道理大家讲道理2656 days ago780

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-06-12 09:33:38

    Open the prototype and see if there is any

    reply
    0
  • Cancelreply