changes
This commit is contained in:
@@ -270,7 +270,7 @@ async function update() {
|
||||
record.value.updater = store.login.id;
|
||||
record.update_time = new Date();
|
||||
let rs = record.value.id
|
||||
? await $patchapi("company", record.value)
|
||||
? await $patchapi("company", { data: record.value })
|
||||
: await $insertapi("company", { data: record.value });
|
||||
if (rs === "error") return;
|
||||
if (!record.value.id) $snackbar(`Khách hàng đã được khởi tạo với mã <b>${rs.code}</b>`, "Success");
|
||||
|
||||
Reference in New Issue
Block a user