From ede20247eeffd34e0fe9517122aea256eb220759 Mon Sep 17 00:00:00 2001 From: rd <1344903914@qq.com> Date: Thu, 25 Sep 2025 09:28:55 +0800 Subject: [PATCH] =?UTF-8?q?refactor(main):=20=E7=A7=BB=E9=99=A4=E6=8C=87?= =?UTF-8?q?=E4=BB=A4=E8=87=AA=E5=8A=A8=E6=B3=A8=E5=86=8C=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 删除了通过遍历对象自动注册指令的代码 - 简化了应用启动时的初始化流程- 提高了代码可读性和维护性 --- src/main.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 150a597..2d50c2f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -28,7 +28,6 @@ const app = createApp(App); app.component('NoData', NoData); app.component('SvgIcon', SvgIcon); -(Object.keys(directives) as Array).forEach((k) => app.use(directives[k])); // 注册指令 app.use(store); app.use(router);