File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ const updateContestTeam = async () => {
6464 members: members .value .map (member => member .id )
6565 })
6666 toast .success (' コンテストチ-ム情報を更新しました' )
67- router .push (` /contests/${contestId .value }/teams/${ contestTeamId . value } ` )
67+ router .push (` /contests/${contestId .value } ` )
6868 } catch {
6969 toast .error (' コンテストチーム情報の更新に失敗しました' )
7070 }
@@ -98,7 +98,7 @@ const deleteContestTeam = async () => {
9898 },
9999 {
100100 title: contestTeam.name,
101- url: `/contests/${contestId}/teams/${contestTeamId}`
101+ url: `/contests/${contestId}/teams/${contestTeamId}/edit `
102102 },
103103 {
104104 title: 'Edit',
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ const handleDelete = (id: string) => {
116116 icon-name =" mdi:clipboard-file-outline"
117117 :header-texts =" [
118118 { title: 'Projects', url: '/projects' },
119- { title: projectDetail.name, url: `/projects/${projectId}` },
119+ { title: projectDetail.name, url: `/projects/${projectId}/edit ` },
120120 { title: 'Edit', url: `/projects/${projectId}/edit` }
121121 ]"
122122 detail =" プロジェクトの情報を変更します。"
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import apis, {
66 CreateProjectRequest ,
77 ProjectMember as ProjectMemberType
88} from ' /@/lib/apis'
9- import { RouterLink } from ' vue-router'
9+ import { RouterLink , useRouter } from ' vue-router'
1010import { computed , reactive , ref } from ' vue'
1111import LabeledForm from ' /@/components/Form/LabeledForm.vue'
1212import FormInput from ' /@/components/UI/FormInput.vue'
@@ -24,6 +24,7 @@ import {
2424import { useProjectStore } from ' /@/store/project'
2525import FieldErrorMessage from ' /@/components/UI/FieldErrorMessage.vue'
2626
27+ const router = useRouter ()
2728const toast = useToast ()
2829const { mutate } = useProjectStore ()
2930
@@ -60,6 +61,7 @@ const createProject = async () => {
6061 }))
6162 })
6263 toast .success (' プロジェクトを追加しました' )
64+ router .push (` /projects/${res .data .id } ` )
6365 } catch {
6466 toast .error (' プロジェクトの追加に失敗しました' )
6567 }
You can’t perform that action at this time.
0 commit comments