diff --git a/Build_God_Game/src/api/index.ts b/Build_God_Game/src/api/index.ts index 9c4c534..6e80220 100644 --- a/Build_God_Game/src/api/index.ts +++ b/Build_God_Game/src/api/index.ts @@ -27,6 +27,9 @@ instance.interceptors.response.use( localStorage.removeItem('user') window.location.href = '/login' } + if (error.code === 'ERR_NETWORK' || error.code === 'ECONNABORTED' || !error.response) { + window.location.href = '/404' + } return Promise.reject(error.response?.data || error.message) } ) diff --git a/Build_God_Game/src/components/FuzzyText/FuzzyText.vue b/Build_God_Game/src/components/FuzzyText/FuzzyText.vue new file mode 100644 index 0000000..5212a36 --- /dev/null +++ b/Build_God_Game/src/components/FuzzyText/FuzzyText.vue @@ -0,0 +1,249 @@ + + + diff --git a/Build_God_Game/src/components/TextType/TextType.vue b/Build_God_Game/src/components/TextType/TextType.vue new file mode 100644 index 0000000..b0fc831 --- /dev/null +++ b/Build_God_Game/src/components/TextType/TextType.vue @@ -0,0 +1,176 @@ + + + diff --git a/Build_God_Game/src/router/index.ts b/Build_God_Game/src/router/index.ts index 74a20dd..b0fd07c 100644 --- a/Build_God_Game/src/router/index.ts +++ b/Build_God_Game/src/router/index.ts @@ -50,6 +50,11 @@ const router = createRouter({ name: 'scrap', component: () => import('@/views/ScrapView.vue'), meta: { requiresAuth: true } + }, + { + path: '/:pathMatch(.*)*', + name: 'NotFound', + component: () => import('@/views/NotFoundView.vue') } ] }) diff --git a/Build_God_Game/src/views/CharacterView.vue b/Build_God_Game/src/views/CharacterView.vue index 9c5a1da..77e694d 100644 --- a/Build_God_Game/src/views/CharacterView.vue +++ b/Build_God_Game/src/views/CharacterView.vue @@ -8,6 +8,7 @@ import Particles from '@/components/Particles/Particles.vue' import GlareHover from '@/components/GlareHover/GlareHover.vue' import ElectricBorder from '@/components/ElectricBorder/ElectricBorder.vue' import GlitchText from '@/components/GlitchText/GlitchText.vue' +import TextType from '@/components/TextType/TextType.vue' const router = useRouter() const characterStore = useCharacterStore() @@ -113,11 +114,12 @@ const formatNumber = (num: number) => {