查看问题
This commit is contained in:
@@ -3,6 +3,7 @@ const axios = require("axios");
|
||||
|
||||
let apps = {list: [], desc: "用于产品库主页面获取应用使用", type: 'wxwork'}
|
||||
const saveApps = app => {
|
||||
console.log(app)
|
||||
if (app.list.length > 0) {
|
||||
return axios.post("http://192.168.1.87:12525/node/wechatapps/addOrUpdate", app, {timeout: 1000}).then(res => {
|
||||
console.log(res)
|
||||
@@ -25,7 +26,7 @@ const getFileInfo = (app, file) => {
|
||||
if (/^App/.test(app.name) && app.label) {
|
||||
let {name, label} = app,
|
||||
path = app.path.replace(/.+[\\\/]([^\\\/]+)[\\\/]([^\\\/]+)$/g, `/apps/$1/$2`)
|
||||
apps.list.push({
|
||||
return apps.list.push({
|
||||
id: file.replace(/\.\/?(vue)?/g, '').replace(/[\\\/]/g, '_'),
|
||||
name,
|
||||
label,
|
||||
|
||||
Reference in New Issue
Block a user