forked from CSGOWTF/csgowtf
18 lines
418 B
TypeScript
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);
|
|
};
|