updated utils from js to ts

This commit is contained in:
2022-03-22 10:09:57 +01:00
parent 7523286236
commit 0e727716a3
11 changed files with 312 additions and 293 deletions

17
src/utils/GoTo.ts Normal file
View File

@@ -0,0 +1,17 @@
import router from "../router";
export const GoToMatch = (id: string): void => {
router.push({ name: "Match", params: { match_id: id } });
};
export const GoToPlayer = (id: string): void => {
router.push({ name: "Player", params: { id: id } });
};
export const GoToError = (code: string): void => {
router.push({ name: code });
};
export const GoToLink = (link: string): void => {
router.replace(link);
};