diff --git a/.gitignore b/.gitignore index 3389d96..677e0d5 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,4 @@ yarn-error.log* /.hbuilderx/launch.json /src/pages.json +/src/config.json diff --git a/bin/pages.js b/bin/pages.js index 69ace01..43bea0a 100644 --- a/bin/pages.js +++ b/bin/pages.js @@ -20,7 +20,7 @@ const saveApps = app => { if (app.list.length > 0) { axios.post("http://dvcp.sinoecare.net/node/wechatapps/addOrUpdate", app).then(res => { if (res?.code == 0) chalkTag.done("产品库目录已同步至后台数据库...") - }).catch(() => 0) + }).catch(() => 0).finally(() => fsExtra.outputJson('src/config.json', {apps: app.list})) } } const start = () => { diff --git a/src/pages/home.vue b/src/pages/home.vue index 915550c..0306918 100644 --- a/src/pages/home.vue +++ b/src/pages/home.vue @@ -34,6 +34,7 @@