省志愿者企微端完成
This commit is contained in:
		| @@ -13,7 +13,7 @@ const getFileInfo = (app, file) => { | ||||
|   } | ||||
|   if (/^App/.test(app.name) && app.label) { | ||||
|     let {name, label} = app, | ||||
|         path = app.path.replace(/.+[\\\/]([^\\\/]+)[\\\/]([^\\\/]+)$/g, `/apps/$1/$2`) | ||||
|       path = app.path.replace(/.+[\\\/]([^\\\/]+)[\\\/]([^\\\/]+)$/g, `/apps/$1/$2`) | ||||
|     apps.list.push({ | ||||
|       id: file.replace(/\.\/?(vue)?/g, '').replace(/[\\\/]/g, '_'), | ||||
|       name, | ||||
| @@ -28,9 +28,7 @@ const saveApps = app => { | ||||
|   if (app.list.length > 0) { | ||||
|     axios.post("http://dvcp.sinoecare.net/node/wechatapps/addOrUpdate", app, {timeout: 1000}).then(res => { | ||||
|       if (res.data.code == 0) chalkTag.done("产品库目录已同步至后台数据库...") | ||||
|     }).catch(err => { | ||||
|       console.log(err) | ||||
|     }) | ||||
|     }).catch(err => 0) | ||||
|   } | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user