From 09c125107043de642967a458b516d6099bf5c4b3 Mon Sep 17 00:00:00 2001 From: aixianling Date: Tue, 6 Dec 2022 09:46:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E7=A6=BB=E7=BA=BF=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + bin/pages.js | 2 +- src/pages/home.vue | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) 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 @@