feat: 调整列表载入顺序

This commit is contained in:
coding 2018-05-16 16:11:23 +00:00
parent 9819a82265
commit 1735417887

View File

@ -39,11 +39,11 @@ var help = [
function load() {
task.async(function () {
pluginCache = Object.keys(manager.plugins);
JSON.parse(http.get(self.config.center)).data.forEach(function cachePackageName(pkg) {
packageCache[pkg.name] = pkg
packageNameCache.push(pkg.name)
packageCache[pkg.name] = pkg;
packageNameCache.push(pkg.name);
})
pluginCache = Object.keys(manager.plugins)
})
}