refactor(main): 移除指令自动注册逻辑

- 删除了通过遍历对象自动注册指令的代码
- 简化了应用启动时的初始化流程- 提高了代码可读性和维护性
This commit is contained in:
rd
2025-09-25 09:28:55 +08:00
parent 1df58090ef
commit ede20247ee

View File

@ -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);