update:新增app_id到模板接口

This commit is contained in:
lihaoyuan 2025-11-21 17:36:26 +08:00
parent cb9593e1c2
commit c0d02c2a9f

View File

@ -50,7 +50,7 @@
<div class="enableExit"> <div class="enableExit">
<el-button <el-button
type="primary" type="primary"
@click="setThemes(page.tpl_id, page.tpl_label)" @click="setThemes(page.tpl_id, page.tpl_label,page.app_id)"
> >
{{ __('启用') }} {{ __('启用') }}
</el-button> </el-button>
@ -115,11 +115,12 @@
} }
} }
}, },
async setThemes(tpl_id, tpl_label) { async setThemes(tpl_id, tpl_label,app_id) {
this.$baseConfirm(this.__('确定启用此模板风格?'), null, async () => { this.$baseConfirm(this.__('确定启用此模板风格?'), null, async () => {
const { msg, status } = await setThemes({ const { msg, status } = await setThemes({
tpl_id: tpl_id, tpl_id: tpl_id,
store_template: tpl_label, store_template: tpl_label,
app_id: app_id,
}) })
if (200 == status) { if (200 == status) {
this.$baseMessage(msg, 'success') this.$baseMessage(msg, 'success')