fix(LoginView): 清空登录表单默认值并启用密码加密

```
This commit is contained in:
zhoumengru
2025-09-23 15:18:14 +08:00
parent 312bf283e0
commit 0abb4e54f1

View File

@@ -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 )