feat: 调整列表载入顺序

merge/2/HEAD
coding 2018-05-16 16:11:23 +00:00
parent 9819a82265
commit 1735417887
1 changed files with 3 additions and 3 deletions

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)
})
}