changes
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user