Skip to content

Commit

Permalink
Feat : Add the Re-request button goto function
Browse files Browse the repository at this point in the history
- #8
  • Loading branch information
carboxaminoo committed Mar 7, 2024
1 parent d5d8824 commit 6f3dc2d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mz_v1_front/src/components/button/request_filled.svelte
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<script>
import { goto } from '$app/navigation';
export let styleVariant = "outlined";
let className = "";
export { className as class };
export let style;
const variantsClassName = "style-variant-" + styleVariant;
export let name = "Do something";
export let type = "";
export let result_id;
export let result_id= sessionStorage.getItem('id');
async function reRequest() {
const token = sessionStorage.getItem('auth_token');
Expand All @@ -21,6 +21,7 @@
});
if (response.ok) {
alert('재생성 요청했습니다.');
goto('/home');
}
else{
const errorResponse = await response.json();
Expand Down

0 comments on commit 6f3dc2d

Please sign in to comment.