This commit is contained in:
Viet An
2026-06-05 20:12:34 +07:00
parent 3254c64f7d
commit 541f99f82a
13 changed files with 47 additions and 83 deletions

View File

@@ -120,7 +120,7 @@ const props = defineProps({
data: Object,
focus: Boolean,
});
const { $empty, $copy, $copyToClipboard, $stripHtml, $updateapi, $insertapi, $findIndex, $snackbar } = useNuxtApp();
const { $empty, $copy, $copyToClipboard, $stripHtml, $patchapi, $insertapi, $findIndex, $snackbar } = useNuxtApp();
const radioOption = ref();
const login = { id: 1 };
const errors = ref([]);
@@ -180,7 +180,7 @@ async function saveSetting() {
detail,
update_time: new Date(),
};
result = await $updateapi("usersetting", updatedSetting);
result = await $patchapi("usersetting", updatedSetting);
}
isLoading.value = false;
if (radioSave.value === "new") {