Skip to content

Commit 5681e52

Browse files
committed
fix:调整注册重复处理
1 parent 0210702 commit 5681e52

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

packages/design-core/src/login/Register.vue

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,7 @@
33
<div class="register-title">注册账号</div>
44
<tiny-form :model="state.registerData">
55
<tiny-form-item prop="username">
6-
<tiny-tooltip v-model="state.usernameManualShow" placement="bottom" effect="light" manual>
7-
<template #content>
8-
<div>
9-
<div class="pw-tips">
10-
<div class="pw-icon">
11-
<svg-icon class="pw-error" name="pw-error"></svg-icon>
12-
</div>
13-
<div class="pw-content">用户名重复。</div>
14-
</div>
15-
</div>
16-
</template>
17-
<tiny-input v-model="state.registerData.username" placeholder="请输入用户名"></tiny-input>
18-
</tiny-tooltip>
6+
<tiny-input v-model="state.registerData.username" placeholder="请输入用户名"></tiny-input>
197
</tiny-form-item>
208
<tiny-form-item prop="password">
219
<tiny-tooltip v-model="state.pwManualShow" placement="bottom" effect="light" manual>
@@ -40,7 +28,7 @@
4028
></tiny-input>
4129
</tiny-tooltip>
4230
</tiny-form-item>
43-
<tiny-form-item prop="password">
31+
<tiny-form-item prop="confirmPassword">
4432
<tiny-tooltip v-model="state.confirmManualShow" placement="bottom" effect="light" manual>
4533
<template #content>
4634
<div>
@@ -93,7 +81,6 @@ export default {
9381
password: '',
9482
confirmPassword: ''
9583
},
96-
usernameManualShow: false,
9784
pwManualShow: false,
9885
confirmManualShow: false,
9986
rules: [...useLogin().passwordRules]

0 commit comments

Comments
 (0)