This commit is contained in:
陈红丽 2024-09-23 14:52:44 +08:00
parent 724c252ed0
commit ad51ed5bfe
2 changed files with 6 additions and 1 deletions

View File

@ -61,7 +61,7 @@ const tableRef = ref();
});
const handleSubmits = async () => {
if(!selectRow.value.id) {
return message("请选择文字文章",'error');
return message("请选择文章",'error');
}
emit("update:visible", false);
emit("success",selectRow.value);

View File

@ -22,6 +22,7 @@
<el-select
v-model="formData.type"
placeholder="请选择页面类型"
@change="handleType"
>
<el-option label="CMS文章" :value="1"></el-option>
<el-option label="通知公告" :value="2"></el-option>
@ -121,6 +122,10 @@ const getArticle=()=>{
}
chooseVisible.value = true
}
const handleType=()=>{
formData.typeId = ''
formData.typeText=''
}
const setFormData = async () => {
const data = await getLayoutDetail(props.layoutId);
for (const key in formData) {