code-origin/pc/plugins/element-plus.ts

9 lines
201 B
TypeScript
Raw Normal View History

2023-11-08 17:59:25 +08:00
import { ElLoading } from 'element-plus'
export default defineNuxtPlugin((nuxtApp) => {
const plugins = [ElLoading]
for (const plugin of plugins) {
nuxtApp.vueApp.use(plugin)
}
})