changes
This commit is contained in:
@@ -360,7 +360,7 @@ async function update() {
|
||||
record.value.updater = store.login.id;
|
||||
record.value.updater_time = new Date();
|
||||
let rs = record.value.id
|
||||
? await $patchapi("people", record.value)
|
||||
? await $patchapi("people", { data: record.value })
|
||||
: await $insertapi("people", { data: record.value, notify: false });
|
||||
if (rs === "error") return;
|
||||
if (!record.value.id) $snackbar(`Người liên quan đã được khởi tạo với mã <b>${rs.code}</b>`, "Success");
|
||||
|
||||
Reference in New Issue
Block a user