feat: 优化插件设置逻辑,支持自动安装模块并增强调试信息
All checks were successful
/ build-and-deploy-to-vercel (push) Successful in 1m20s
/ depcheck (push) Successful in 58s
/ playwright (push) Successful in 1m51s

This commit is contained in:
严浩
2025-01-08 10:17:07 +08:00
parent b70da8aad4
commit 3292800f0d
2 changed files with 12 additions and 8 deletions

View File

@ -3,4 +3,5 @@ import './styles';
import App from './App.vue';
import { setupPlugins } from './plugins';
setupPlugins(createApp(App)).mount('#app');
const autoInstallModules = import.meta.glob('./plugins/*.ts', { eager: true });
setupPlugins(createApp(App), autoInstallModules).mount('#app');