| | |
| | | <el-input v-model="ruleForm.account" placeholder="请输入账号" clearable></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="密码" prop="pwd"> |
| | | <el-input v-model="ruleForm.pwd" placeholder="请输入密码" clearable show-password></el-input> |
| | | <el-input v-model="ruleForm.pwd" placeholder="请输入密码" clearable show-password @keyup.enter.native="submitForm('ruleForm')"></el-input> |
| | | </el-form-item> |
| | | <el-form-item style="margin-bottom: 8px;"> |
| | | <el-col :span="12"><el-checkbox v-model="ruleForm.remumberme">记住密码</el-checkbox></el-col> |
| | |
| | | localStorage.setItem('user', JSON.stringify({ |
| | | account: this.ruleForm.account, |
| | | password: this.ruleForm.pwd, |
| | | name: res.data.name |
| | | name: res.data.name, |
| | | userId: res.data.userId |
| | | })) |
| | | sessionStorage.setItem('token', res.data.token) |
| | | sessionStorage.setItem('reToken', res.data.reToken) |