This commit is contained in:
parent
623765a9bb
commit
cfa8088553
|
|
@ -676,6 +676,7 @@ async function handleSubmit() {
|
|||
if (isEdit.value) {
|
||||
await updateProduct(Number(route.params.id), data)
|
||||
ElMessage.success('更新成功')
|
||||
loadSpecData()
|
||||
} else {
|
||||
const createData = { ...data, specDataList: specDataRows.value }
|
||||
const res: any = await createProduct(createData)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user