初始化
This commit is contained in:
8
saiadmin-vue/src/plugin/index.js
Normal file
8
saiadmin-vue/src/plugin/index.js
Normal file
@@ -0,0 +1,8 @@
|
||||
export default {
|
||||
install: (Vue) => {
|
||||
const pluginList = import.meta.glob('./*/main.js')
|
||||
Object.keys(pluginList).forEach((path) => {
|
||||
pluginList[path]().then(plugin => Vue.use(plugin.default || plugin))
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user