Es6请求封装 function registryToast(){ vue.prototype.$toast=showToast } export default registryToast import './assets/css/icon.css';