| | |
| | | this.$store.dispatch('login',loginInfo).then(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); |
| | | //设置全局参数:user-用户信息 |
| | | uni.setStorageSync('server',loginInfo.server); |
| | | // uni.setStorageSync('account',loginInfo.uname); |
| | |
| | | // url:'../index/index?args=9999999999' |
| | | // }); |
| | | this.login="开始登录"; |
| | | |
| | | }else{ |
| | | uni.showModal({title:"错误",content:success.msg,showCancel:false,confirmText:"取消"}); |
| | | this.login="开始登录"; |