refactor(main): 移除指令自动注册逻辑
- 删除了通过遍历对象自动注册指令的代码 - 简化了应用启动时的初始化流程- 提高了代码可读性和维护性
This commit is contained in:
@ -28,7 +28,6 @@ const app = createApp(App);
|
||||
|
||||
app.component('NoData', NoData);
|
||||
app.component('SvgIcon', SvgIcon);
|
||||
(Object.keys(directives) as Array<keyof typeof directives>).forEach((k) => app.use(directives[k])); // 注册指令
|
||||
|
||||
app.use(store);
|
||||
app.use(router);
|
||||
|
||||
Reference in New Issue
Block a user