| | |
| | | }, |
| | | handleLogin: function () { |
| | | this.userInfo = this.$store.state.upadatastatus |
| | | console.log(this.userInfo) |
| | | localStorage.setItem('username',this.loginForm.username) |
| | | this.$refs.loginForm.validate(valid => { |
| | | if (valid) { |
| | | const loading = this.$loading({ |
| | |
| | | //把判断密码策略修改的值存进本地,然后再路由权限js文件里面获取再做判断,不然刷新会进入首页(因为在有id和token的情况下,刷新页面或者进入登录页会自动进入首页) |
| | | //index页面也可以用到这个值来判断是否是超管身份登录来判断是否提醒过期时间等 |
| | | localStorage.setItem("updataid",JSON.stringify(this.userInfo)) |
| | | localStorage.setItem("userId",this.userInfo.user_id) |
| | | loading.close(); |
| | | }).catch(() => { |
| | | loading.close(); |