注册全局组件的两种方式

101 阅读1分钟

1.在main.js中直接引入 注册 (全局组件过多不方便管理)

image.png

2.创建文件注册并在 main中导入使用

image.png

image.png