diff --git a/examples/router/autoRoutes.js b/examples/router/autoRoutes.js
index 5a2775df..13b207ab 100644
--- a/examples/router/autoRoutes.js
+++ b/examples/router/autoRoutes.js
@@ -20,7 +20,8 @@ export default {
if (file.default) {
let {name, label} = file.default,
addApp = {
- name: path.replace(/\.\/?(vue)?/g, '')?.split("/").join("_"), label: label || name,
+ name: [base, path.replace(/\.\/?(vue)?/g, '')?.split("/")].flat().join("_"),
+ label: label || name,
path: `/${base}${path.replace(/\.(\/.+\/App.+)\.vue$/, '$1')}`,
component: appEntry,
module: file.default
diff --git a/project/oms/apps/develop/AppDeployCustom/add.vue b/project/oms/apps/develop/AppDeployCustom/add.vue
index eff2057c..57403d79 100644
--- a/project/oms/apps/develop/AppDeployCustom/add.vue
+++ b/project/oms/apps/develop/AppDeployCustom/add.vue
@@ -47,10 +47,12 @@
-
-
- logo文字
-
+
+
+
+ logo文字
+
+
@@ -249,7 +251,7 @@ export default {
this.form.extra = {tabBar, appId}
} else if (type == 'web') {
const {desc} = sysInfo
- sysInfo.desc = JSON.parse(desc)
+ sysInfo.desc = JSON.parse(desc || null)
this.form.extra = {isSingleService, homePage, hmt, dv, downloadCenter, showTool, helpDoc, customerService, sysInfo}
} else if (type == 'wxwork') {
this.form.extra = {isSingleService, homePage, hmt}
@@ -257,7 +259,7 @@ export default {
this.instance.post("/node/custom/addOrUpdate", this.form).then(res => {
if (res?.code == 0) {
this.$message.success("提交成功!")
- this.back()
+ this.getDetail()
}
})
}
@@ -271,7 +273,7 @@ export default {
delete values.tabBar
}
} else if (v == 'web') {
- values?.sysInfo.desc = JSON.stringify(values?.sysInfo.desc)
+ if (values?.sysInfo?.desc) values.sysInfo.desc = JSON.stringify(values.sysInfo.desc)
}
Object.keys(values).map(e => this.$set(this.form, e, values[e]))
},