修复引优化导致的产品库目录路径异常的问题
This commit is contained in:
@@ -20,7 +20,8 @@ export default {
|
|||||||
if (file.default) {
|
if (file.default) {
|
||||||
let {name, label} = file.default,
|
let {name, label} = file.default,
|
||||||
addApp = {
|
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')}`,
|
path: `/${base}${path.replace(/\.(\/.+\/App.+)\.vue$/, '$1')}`,
|
||||||
component: appEntry,
|
component: appEntry,
|
||||||
module: file.default
|
module: file.default
|
||||||
|
|||||||
@@ -47,10 +47,12 @@
|
|||||||
<el-input v-model="form.sysInfo.fullTitle" placeholder="请输入..." clearable/>
|
<el-input v-model="form.sysInfo.fullTitle" placeholder="请输入..." clearable/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="logo">
|
<el-form-item label="logo">
|
||||||
|
<el-row type="flex">
|
||||||
<el-input v-model="form.sysInfo.logo" placeholder="请输入..." clearable/>
|
<el-input v-model="form.sysInfo.logo" placeholder="请输入..." clearable/>
|
||||||
<el-input v-model="form.sysInfo.logoText" placeholder="logo文字">
|
<el-input class="mar-l10" v-model="form.sysInfo.logoText" placeholder="logo文字">
|
||||||
<template #prepend>logo文字</template>
|
<template #prepend>logo文字</template>
|
||||||
</el-input>
|
</el-input>
|
||||||
|
</el-row>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="登录页">
|
<el-form-item label="登录页">
|
||||||
<el-row type="flex">
|
<el-row type="flex">
|
||||||
@@ -249,7 +251,7 @@ export default {
|
|||||||
this.form.extra = {tabBar, appId}
|
this.form.extra = {tabBar, appId}
|
||||||
} else if (type == 'web') {
|
} else if (type == 'web') {
|
||||||
const {desc} = sysInfo
|
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}
|
this.form.extra = {isSingleService, homePage, hmt, dv, downloadCenter, showTool, helpDoc, customerService, sysInfo}
|
||||||
} else if (type == 'wxwork') {
|
} else if (type == 'wxwork') {
|
||||||
this.form.extra = {isSingleService, homePage, hmt}
|
this.form.extra = {isSingleService, homePage, hmt}
|
||||||
@@ -257,7 +259,7 @@ export default {
|
|||||||
this.instance.post("/node/custom/addOrUpdate", this.form).then(res => {
|
this.instance.post("/node/custom/addOrUpdate", this.form).then(res => {
|
||||||
if (res?.code == 0) {
|
if (res?.code == 0) {
|
||||||
this.$message.success("提交成功!")
|
this.$message.success("提交成功!")
|
||||||
this.back()
|
this.getDetail()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -271,7 +273,7 @@ export default {
|
|||||||
delete values.tabBar
|
delete values.tabBar
|
||||||
}
|
}
|
||||||
} else if (v == 'web') {
|
} 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]))
|
Object.keys(values).map(e => this.$set(this.form, e, values[e]))
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user