增加为实际部署设置的域名根目录baseURL

This commit is contained in:
aixianling
2023-01-17 11:05:24 +08:00
parent eda173a5a7
commit 15fa0bfd38

View File

@@ -154,6 +154,9 @@
</el-form-item> </el-form-item>
</div> </div>
<div class="fill"> <div class="fill">
<el-form-item label="域名根目录(baseURL)">
<el-input v-model="form.base" clearable placeholder="域名根目录"/>
</el-form-item>
<el-form-item label="默认首页"> <el-form-item label="默认首页">
<el-input v-model="form.homePage" clearable placeholder="填写应用的文件名"/> <el-input v-model="form.homePage" clearable placeholder="填写应用的文件名"/>
</el-form-item> </el-form-item>
@@ -182,6 +185,9 @@
</el-form-item> </el-form-item>
</div> </div>
<div class="fill"> <div class="fill">
<el-form-item label="域名根目录(baseURL)">
<el-input v-model="form.base" clearable placeholder="域名根目录"/>
</el-form-item>
<el-form-item label="开启百度流量"> <el-form-item label="开启百度流量">
<el-checkbox v-model="form.hmt"/> <el-checkbox v-model="form.hmt"/>
</el-form-item> </el-form-item>
@@ -311,7 +317,8 @@ export default {
customerService, customerService,
sysInfo, sysInfo,
appQRCode, appQRCode,
customLogin customLogin,
base
} }
} = this } = this
if (type == 'mp') { if (type == 'mp') {
@@ -319,9 +326,9 @@ export default {
} else if (type == 'web') { } else if (type == 'web') {
const {desc} = sysInfo const {desc} = sysInfo
sysInfo.desc = JSON.parse(desc || null) sysInfo.desc = JSON.parse(desc || null)
this.form.extra = {isSingleService, homePage, hmt, dv, downloadCenter, showTool, helpDoc, customerService, sysInfo, appQRCode} this.form.extra = {isSingleService, homePage, hmt, dv, downloadCenter, showTool, helpDoc, customerService, sysInfo, appQRCode, base}
} else if (type == 'wxwork') { } else if (type == 'wxwork') {
this.form.extra = {isSingleService, homePage, hmt, customLogin} this.form.extra = {isSingleService, homePage, hmt, customLogin, base}
} }
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) {