Skip to content

Commit

Permalink
src/components/register: add defaultFormRegisterValue const
Browse files Browse the repository at this point in the history
  • Loading branch information
tmszi committed Oct 22, 2024
1 parent ed8f840 commit 93db360
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/components/register/FormRegister.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,11 @@ export default defineComponent({
},
emits: ['formSubmit'],
setup() {
const defaultFormRegisterValue = '';
const formRegister = reactive({
email: '',
password1: '',
password2: '',
email: defaultFormRegisterValue,
password1: defaultFormRegisterValue,
password2: defaultFormRegisterValue,
});
const registerStore = useRegisterStore();
Expand All @@ -74,9 +75,9 @@ export default defineComponent({
};
const onReset = (): void => {
formRegister.email = '';
formRegister.password1 = '';
formRegister.password2 = '';
formRegister.email = defaultFormRegisterValue;
formRegister.password1 = defaultFormRegisterValue;
formRegister.password2 = defaultFormRegisterValue;
};
const { getPaletteColor, changeAlpha } = colors;
Expand Down

0 comments on commit 93db360

Please sign in to comment.