From 541f99f82a8fb290afe7184f747a561f5504e93f Mon Sep 17 00:00:00 2001 From: Viet An Date: Fri, 5 Jun 2026 20:12:34 +0700 Subject: [PATCH] changes --- app/components/common/ActionInfo.vue | 4 +- app/components/common/Note.vue | 4 +- app/components/common/NoteInfo.vue | 2 +- app/components/customer/Company.vue | 4 +- app/components/datatable/MenuSave.vue | 4 +- app/components/dialog/Delete.vue | 2 +- app/components/media/FileInfo.vue | 2 +- app/components/parameter/ImportSetting.vue | 2 +- app/components/people/PeopleInfo.vue | 4 +- app/components/user/ChangePass.vue | 2 +- app/components/user/ConfirmCode.vue | 2 +- app/components/user/SetPassword.vue | 2 +- app/plugins/02-connection.js | 96 +++++++--------------- 13 files changed, 47 insertions(+), 83 deletions(-) diff --git a/app/components/common/ActionInfo.vue b/app/components/common/ActionInfo.vue index c52f4e0..d89d5a8 100644 --- a/app/components/common/ActionInfo.vue +++ b/app/components/common/ActionInfo.vue @@ -223,7 +223,7 @@ const { $resetNull, $findapi, $insertapi, - $updateapi, + $patchapi, $remove, $deleteapi, $empty, @@ -315,7 +315,7 @@ async function update() { data.link = arr1.length === 0 ? null : arr1; let api = $findapi("useraction"); record = data.id - ? await $updateapi("useraction", { data, values: api.params.values }) + ? await $patchapi("useraction", { data, values: api.params.values }) : await $insertapi("useraction", { data, values: api.params.values }); getValue(); } diff --git a/app/components/common/Note.vue b/app/components/common/Note.vue index 78f2c47..2390023 100644 --- a/app/components/common/Note.vue +++ b/app/components/common/Note.vue @@ -21,7 +21,7 @@