Problems encountered when vue+webpack references third-party plug-ins

hasn"t mint-ui been globally introduced in main.js and installed with Vue.use (meaning that toast is not also installed? ), but why do you use toast to report to undefined, directly? Is there a scope problem?
main.js

import Vue from "vue"
import MintUI from" mint-ui"
import "mint-ui/lib/style.css"

Vue.use (MintUI)

new Vue ({

created(){
    new Toast("hello");  //toast is undefined
}

})

May.06,2021

this.toast (.)
see if the document is ready


you have registered MintUI on Vue , so you can use it directly in the component: this.$toast () call without initialization.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b39d59-e715.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b39d59-e715.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?