[vue3]封装自定义全局插件 原vue2方法 main.js import Vue from 'vue' import App from './App.vue' import router from './router' import store from './store' import plugin from './···/plugin/index' //安装自定义的插件 Vue.use(plugin); new Vue({ router, store, render: h => h(Ap…