mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-27 18:59:26 +08:00
```
fix(LoginView): 清空登录表单默认值并启用密码加密 ```
This commit is contained in:
@@ -51,8 +51,8 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
form: {
|
||||
account: 'admin',
|
||||
passwd: '123456'
|
||||
account: '',
|
||||
passwd: ''
|
||||
},
|
||||
rules: {
|
||||
account: [
|
||||
@@ -81,7 +81,7 @@ export default {
|
||||
const values = await this.$refs.ruleForm.validateFields()
|
||||
const newForm={
|
||||
...this.form,
|
||||
// passwd:sm3(this.form.passwd)
|
||||
passwd:sm3(this.form.passwd)
|
||||
}
|
||||
|
||||
const res = await getReq('/login',newForm )
|
||||
|
||||
Reference in New Issue
Block a user