@ -433,8 +433,12 @@ const handleUpdate = async (rowId: number) => {
await setDialogTile('edit')
// 设置数据
saveForm.value = await ModelApi.getModelApi(rowId)
if (saveForm.value.category == null) {
saveForm.value.category = 1
} else {
saveForm.value.category = Number(saveForm.value.category)
}
// 提交按钮
const submitForm = async () => {