Files
csgowtf/src/utils/GoTo.ts
2022-03-22 10:09:57 +01:00

18 lines
418 B
TypeScript

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);
};