mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-12 02:45:49 +02:00
fix: beforeSave may not define issue
This commit is contained in:
parent
5490e48d9f
commit
a19878aaeb
1 changed files with 22 additions and 22 deletions
|
@ -93,7 +93,7 @@ function clear_error() {
|
|||
|
||||
const ok = async () => {
|
||||
clear_error()
|
||||
await props.beforeSave(data)
|
||||
await props?.beforeSave?.(data)
|
||||
props.api!.save(data.id, data).then((r: any) => {
|
||||
message.success($gettext('Save Successfully'))
|
||||
Object.assign(data, r)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue