changes
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user