#7 added errorPages
All checks were successful
CSGOWTF/csgowtf/pipeline/head This commit looks good

This commit is contained in:
2021-11-23 10:33:24 +01:00
parent 21bf749556
commit 44d6a97fb4
12 changed files with 151 additions and 83 deletions

View File

@@ -1,3 +1,17 @@
import {GoToError} from "@/utils/GoTo";
export const errorHandling = (code) => {
if (code === 404) {
GoToError('404')
} else if (code === 500) {
GoToError('500')
} else if (code === 502) {
GoToError('502')
} else {
GoToError('404')
}
}
export const setTitle = (title) => {
document.title = `${title} | csgoWTF`
}