Files
csgowtf/src/utils/GoTo.js
vikingowl 9a6d24193d
Some checks failed
CSGOWTF/csgowtf/pipeline/head There was a failure building this commit
upgrade from webpack to vite + typescript
2022-03-18 11:40:43 +01:00

18 lines
362 B
JavaScript

import router from "../router";
export const GoToMatch = (id) => {
router.push({ name: "Match", params: { match_id: id } });
};
export const GoToPlayer = (id) => {
router.push({ name: "Player", params: { id: id } });
};
export const GoToError = (code) => {
router.push({ name: code });
};
export const GoToLink = (link) => {
router.replace(link);
};