fix: 去除没有必要的v-model、处理部分双向绑定问题
This commit is contained in:
@@ -66,11 +66,7 @@ export default defineComponent({
|
||||
>
|
||||
<Form ref={formRef} layout="vertical" model={formData} class={styles.form} requiredMark>
|
||||
<Form.Item label="新密码" name="newPassword" rules={newPasswordRules}>
|
||||
<Input.Password
|
||||
placeholder="至少8位,含字母+数字"
|
||||
allowClear
|
||||
v-model:value={formData.newPassword}
|
||||
/>
|
||||
<Input.Password placeholder="至少8位,含字母+数字" allowClear />
|
||||
</Form.Item>
|
||||
|
||||
<Form.Item
|
||||
@@ -78,11 +74,7 @@ export default defineComponent({
|
||||
name="confirmPassword"
|
||||
rules={confirmNewPasswordRules(() => formData.newPassword)}
|
||||
>
|
||||
<Input.Password
|
||||
placeholder="再次输入新密码"
|
||||
allowClear
|
||||
v-model:value={formData.confirmPassword}
|
||||
/>
|
||||
<Input.Password placeholder="再次输入新密码" allowClear />
|
||||
</Form.Item>
|
||||
|
||||
<div class={styles.tip}>{TIPS_TEXT}</div>
|
||||
|
||||
Reference in New Issue
Block a user