From 374a112da60acfea23aea3bb61f83a49f212bd25 Mon Sep 17 00:00:00 2001 From: kuaileWu <1432334894@qq.com> Date: Fri, 13 Jun 2025 09:59:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E7=99=BB=E5=BD=95=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E4=B8=8D=E5=AD=98=E5=9C=A8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 6 ++++++ pages/index/index.vue | 7 ++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index 3ba6261..a2ad206 100644 --- a/main.js +++ b/main.js @@ -285,6 +285,12 @@ function req(url, data={}, method = 'POST', header={}) { } return; } + + if (rs.confirm && rdata.code!=CODE_LOGIN_EXIPRE && rdata.msg && rdata.msg.indexOf('用户信息不存在') > -1) { + removeLogin(); + navToPath('/pages/index/index') + return; + } } }); diff --git a/pages/index/index.vue b/pages/index/index.vue index 519f15f..2ff528f 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -16,12 +16,12 @@ - + {{doctorInfo.doctor_info.doctor_detail}} @@ -121,7 +121,8 @@ loginToken:false, state:'', workdate:[], - user_type:-1 + user_type:-1, + show_info:false, } }, components:{