This commit is contained in:
cdf
2024-04-17 10:28:37 +08:00
parent 38e88f0ff5
commit 15258b6214

View File

@@ -8,6 +8,7 @@
clearable clearable
:options="tableStore.table.data" :options="tableStore.table.data"
:props="cascaderProps" :props="cascaderProps"
clearable
style="width: 100%" style="width: 100%"
/> />
</el-form-item> </el-form-item>
@@ -99,6 +100,11 @@ const open = (text: string, data: anyObj) => {
dialogVisible.value = true dialogVisible.value = true
} }
const submit = async () => { const submit = async () => {
if(form.pid === ''||form.pid === null){
form.pid = '0'
}
if (form.id) { if (form.id) {
await updateMenu(form) await updateMenu(form)
} else { } else {