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:{