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() { 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 )