|
|
@ -124,7 +124,6 @@ const { |
|
|
|
isNew, |
|
|
|
isNew, |
|
|
|
loadRow: _loadRow, |
|
|
|
loadRow: _loadRow, |
|
|
|
primaryKey, |
|
|
|
primaryKey, |
|
|
|
saveRowAndStay, |
|
|
|
|
|
|
|
row: _row, |
|
|
|
row: _row, |
|
|
|
save: _save, |
|
|
|
save: _save, |
|
|
|
loadComments, |
|
|
|
loadComments, |
|
|
@ -382,9 +381,6 @@ useActiveKeyupListener( |
|
|
|
await save() |
|
|
|
await save() |
|
|
|
reloadHook?.trigger(null) |
|
|
|
reloadHook?.trigger(null) |
|
|
|
} |
|
|
|
} |
|
|
|
if (!saveRowAndStay.value) { |
|
|
|
|
|
|
|
onClose() |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} catch (e: any) { |
|
|
|
} catch (e: any) { |
|
|
|
if (isNew.value) { |
|
|
|
if (isNew.value) { |
|
|
|
message.error(`Add row failed: ${await extractSdkResponseErrorMsg(e)}`) |
|
|
|
message.error(`Add row failed: ${await extractSdkResponseErrorMsg(e)}`) |
|
|
|