支持离线模式

This commit is contained in:
aixianling
2022-12-06 09:46:00 +08:00
parent 72a63e1fdc
commit 09c1251070
3 changed files with 4 additions and 1 deletions

View File

@@ -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 = () => {