From c8bc8522676e19664a439ea8b12c5a2e0abd6fb7 Mon Sep 17 00:00:00 2001 From: KUN1007 Date: Tue, 3 Oct 2023 20:55:53 +0800 Subject: [PATCH] feat: error handler --- src/components/alert/KUNGalgameMessage.vue | 21 +++++++++++++++----- src/error/errorHandler.ts | 17 ++++++++++++++++ src/error/errorI18n.ts | 23 ++++++++++++++++++++++ src/error/onRequestError.ts | 21 +++++++++++++++++--- src/language/en.ts | 1 - src/language/zh.ts | 1 - src/utils/request.ts | 8 ++++++-- src/views/login/components/Login.vue | 7 ++++++- 8 files changed, 86 insertions(+), 13 deletions(-) create mode 100644 src/error/errorHandler.ts create mode 100644 src/error/errorI18n.ts diff --git a/src/components/alert/KUNGalgameMessage.vue b/src/components/alert/KUNGalgameMessage.vue index 841e85db..5637ad63 100644 --- a/src/components/alert/KUNGalgameMessage.vue +++ b/src/components/alert/KUNGalgameMessage.vue @@ -1,11 +1,13 @@