细节优化

This commit is contained in:
🌌 2024-03-11 11:55:17 +08:00
parent b63598af98
commit 008f76e440
1 changed files with 3 additions and 4 deletions

View File

@ -89,10 +89,9 @@ class PluginsLoader {
this.pluginCount = 0 this.pluginCount = 0
const packageErr = [] const packageErr = []
const pluginArray = [] await Promise.allSettled(files.map(file =>
for (const file of files) this.importPlugin(file, packageErr)
pluginArray.push(this.importPlugin(file, packageErr)) ))
await Promise.allSettled(pluginArray)
this.packageTips(packageErr) this.packageTips(packageErr)
this.creatTask() this.creatTask()