细节优化
This commit is contained in:
parent
b63598af98
commit
008f76e440
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue