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() {
|
data() {
|
||||||
return {
|
return {
|
||||||
form: {
|
form: {
|
||||||
account: 'admin',
|
account: '',
|
||||||
passwd: '123456'
|
passwd: ''
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
account: [
|
account: [
|
||||||
@@ -81,7 +81,7 @@ export default {
|
|||||||
const values = await this.$refs.ruleForm.validateFields()
|
const values = await this.$refs.ruleForm.validateFields()
|
||||||
const newForm={
|
const newForm={
|
||||||
...this.form,
|
...this.form,
|
||||||
// passwd:sm3(this.form.passwd)
|
passwd:sm3(this.form.passwd)
|
||||||
}
|
}
|
||||||
|
|
||||||
const res = await getReq('/login',newForm )
|
const res = await getReq('/login',newForm )
|
||||||
|
|||||||
Reference in New Issue
Block a user