From d9d1b4332986fae66a00ef1f309d50560588920c Mon Sep 17 00:00:00 2001 From: jt <jt@activesoft.com> Date: 星期四, 09 二月 2023 17:06:28 +0800 Subject: [PATCH] test --- pages/login/index.vue | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/pages/login/index.vue b/pages/login/index.vue index dea3ef1..b3ed9cc 100644 --- a/pages/login/index.vue +++ b/pages/login/index.vue @@ -281,8 +281,15 @@ this.$data.login="loading......"; //鐧诲綍 this.$store.dispatch('login',loginInfo).then(success=>{ - // console.log(success); + console.log(success); if (success.code == '00000') { + //鐧诲綍鎴愬姛鍚庢竻绌虹紦瀛樻暟鎹�+ this.$store.commit("areaFunc",null); + this.$store.commit("classAttrList",null); + this.$store.commit("classGridStyleInfo",null); + this.$store.commit("dicValueInfo",null); + this.$store.commit("subClassAttrList",null); + this.$store.commit("subClassGridStyleInfo",null); //璁剧疆鍏ㄥ眬鍙傛暟锛歶ser-鐢ㄦ埛淇℃伅 uni.setStorageSync('server',loginInfo.server); // uni.setStorageSync('account',loginInfo.uname); @@ -298,12 +305,13 @@ // url:'../index/index?args=9999999999' // }); this.login="寮�鐧诲綍"; + }else{ uni.showModal({title:"閿欒",content:success.msg,showCancel:false,confirmText:"鍙栨秷"}); this.login="寮�鐧诲綍"; } }).catch(ex=>{ - // console.log(ex); + console.log(ex); uni.showModal({title:"閿欒",content:ex.errMsg,showCancel:false,confirmText:"鍙栨秷"}); this.login="寮�鐧诲綍"; }); -- Gitblit v1.9.1