From ebb12f968615dfb3eecc2266a7c3a6e1f2d143a6 Mon Sep 17 00:00:00 2001 From: DongZeLiang <2746733890@qq.com> Date: Fri, 13 Sep 2024 16:34:35 +0800 Subject: [PATCH] =?UTF-8?q?fix():=20=E5=A2=9E=E5=8A=A0=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/request.js | 8 ++++---- src/views/login/index.vue | 3 ++- src/views/vehicle/index.vue | 14 +++++++++----- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/src/utils/request.js b/src/utils/request.js index d7c0497..c8798f1 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -54,11 +54,11 @@ service.interceptors.response.use( }) // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired; - if (res.code === 50008 || res.code === 50012 || res.code === 50014) { + if (res.code === 501 || res.code === 502 || res.code === 503) { // to re-login - MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', { - confirmButtonText: 'Re-Login', - cancelButtonText: 'Cancel', + MessageBox.confirm('您已经注销,您可以取消以保留在此页面上,或再次登录', '确认注销', { + confirmButtonText: '重新登录', + cancelButtonText: '取消', type: 'warning' }).then(() => { store.dispatch('user/resetToken').then(() => { diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 8d7813c..71e0ec2 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -37,7 +37,8 @@ /> - 进入 + 登录系统 + 注册系统 diff --git a/src/views/vehicle/index.vue b/src/views/vehicle/index.vue index 309ac75..6cd5829 100644 --- a/src/views/vehicle/index.vue +++ b/src/views/vehicle/index.vue @@ -1,9 +1,13 @@ - + - 添加车辆 - 生成车辆 + + 添加车辆 + + + 生成车辆 + @@ -36,7 +40,7 @@ - + @@ -208,7 +212,7 @@ 一行一个VIN,多VIN进行换行 - + 添加车辆