企微H5增加自定义登录开关

This commit is contained in:
aixianling
2022-12-29 09:24:31 +08:00
parent 8a830a53d9
commit 5e9f44e5c4

View File

@@ -145,6 +145,9 @@
<el-form-item label="是否启用水印">
<el-checkbox v-model="form.waterMarker"/>
</el-form-item>
<el-form-item label="自定义登录">
<el-checkbox v-model="form.customLogin"/>
</el-form-item>
</div>
<div class="fill">
<el-form-item label="默认首页">
@@ -290,7 +293,22 @@ export default {
if (v) {
const {
tabBar,
form: {type, appId, embeddedAppIdList, isSingleService, homePage, hmt, dv, downloadCenter, showTool, helpDoc, customerService, sysInfo, appQRCode}
form: {
type,
appId,
embeddedAppIdList,
isSingleService,
homePage,
hmt,
dv,
downloadCenter,
showTool,
helpDoc,
customerService,
sysInfo,
appQRCode,
customLogin
}
} = this
if (type == 'mp') {
this.form.extra = {tabBar, appId, embeddedAppIdList, isSingleService}
@@ -299,7 +317,7 @@ export default {
sysInfo.desc = JSON.parse(desc || null)
this.form.extra = {isSingleService, homePage, hmt, dv, downloadCenter, showTool, helpDoc, customerService, sysInfo, appQRCode}
} else if (type == 'wxwork') {
this.form.extra = {isSingleService, homePage, hmt}
this.form.extra = {isSingleService, homePage, hmt, customLogin}
}
this.instance.post("/node/custom/addOrUpdate", this.form).then(res => {
if (res?.code == 0) {