This commit is contained in:
Viet An
2026-07-03 09:24:05 +07:00
parent f519573c19
commit 4404c4654b
22 changed files with 59 additions and 39 deletions

View File

@@ -31,7 +31,7 @@ let record = await $getdata("application", {
first: true,
});
async function save() {
await $patchapi("application", record);
await $patchapi("application", { data: record });
record = await $getdata("application", {
filter: { id: props.row.id },
first: true,

View File

@@ -125,7 +125,7 @@ export default {
data = this.$copy(this.current);
data.detail = this.detail;
}
let rs = data.id ? await this.$patchapi(this.api, data) : await this.$insertapi(this.api, { data });
let rs = data.id ? await this.$patchapi(this.api, { data }) : await this.$insertapi(this.api, { data });
if (!rs) return;
this.detail = undefined;
if (this.current) {