Skip to content

Commit

Permalink
location.reload after post record
Browse files Browse the repository at this point in the history
  • Loading branch information
azuki774 committed Aug 13, 2024
1 parent f5c2a18 commit a169e3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/PostRecord.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ categoryList.value = data
const priceBox = ref<number>()
const postButton = async (): Promise<void> => {
const asyncData = await useAsyncData(
const asyncDataBtn = await useAsyncData(
`record`,
(): Promise<any> => {
const send_category_id = selector.value.slice(0, 3) // 210-食費→210
Expand All @@ -40,6 +40,7 @@ const postButton = async (): Promise<void> => {
return response;
}
);
location.reload()
};
</script>
Expand Down

0 comments on commit a169e3a

Please sign in to comment.