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() { function load() {
task.async(function () { task.async(function () {
pluginCache = Object.keys(manager.plugins);
JSON.parse(http.get(self.config.center)).data.forEach(function cachePackageName(pkg) { JSON.parse(http.get(self.config.center)).data.forEach(function cachePackageName(pkg) {
packageCache[pkg.name] = pkg packageCache[pkg.name] = pkg;
packageNameCache.push(pkg.name) packageNameCache.push(pkg.name);
}) })
pluginCache = Object.keys(manager.plugins)
}) })
} }