forked from CSGOWTF/csgowtf
updated utils from js to ts
This commit is contained in:
17
src/utils/GoTo.ts
Normal file
17
src/utils/GoTo.ts
Normal 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);
|
||||
};
|
||||
Reference in New Issue
Block a user