查看问题

This commit is contained in:
aixianling
2023-03-16 09:59:19 +08:00
parent e401091d29
commit 9bf44c1284

View File

@@ -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,