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

@@ -21,7 +21,7 @@
</template>
<script setup>
const emit = defineEmits(["close"]);
const { $store, $getdata, $updateapi, $updatepage } = useNuxtApp();
const { $store, $getdata, $patchapi, $updatepage } = useNuxtApp();
const props = defineProps({
row: Object,
pagename: String,
@@ -31,7 +31,7 @@ let record = await $getdata("application", {
first: true,
});
async function save() {
await $updateapi("application", record);
await $patchapi("application", record);
record = await $getdata("application", {
filter: { id: props.row.id },
first: true,