From 17354178874f7831c2116502baf521a85e3fa121 Mon Sep 17 00:00:00 2001 From: coding Date: Wed, 16 May 2018 16:11:23 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B0=83=E6=95=B4=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E8=BD=BD=E5=85=A5=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/plugins/MiaoScriptPackageManager.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/resources/plugins/MiaoScriptPackageManager.js b/src/main/resources/plugins/MiaoScriptPackageManager.js index d3f08f9..aa34ee4 100644 --- a/src/main/resources/plugins/MiaoScriptPackageManager.js +++ b/src/main/resources/plugins/MiaoScriptPackageManager.js @@ -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) }) }