refactored code

This commit is contained in:
cnachtigall1991
2021-10-13 15:44:05 +02:00
parent 544ef95722
commit 5f3d0b981f
14 changed files with 250 additions and 156 deletions

View File

@@ -1,13 +1,13 @@
import router from "../router";
export const GoToMatch = (id) => {
router.push(`/match/${id}`)
router.push({name: 'Match', params: {match_id: id}})
}
export const GoToPlayer = (id) => {
router.push(`/player/${id}`)
router.push({name: 'Player', params: {id: id}})
}
export const GoToLink = (link) => {
router.push(`${link}`)
}
}