Skip to content

Commit

Permalink
style: fix vue event name casing
Browse files Browse the repository at this point in the history
  • Loading branch information
kirklin committed Nov 25, 2024
1 parent ca4c7f1 commit a5543ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useUserStore } from "~/store/modules/user";
import type { SignInFromType } from "~/pages/login/types";
const emit = defineEmits<{
(e: "forgot-password"): void;
(e: "forgotPassword"): void;
}>();
const { t } = useI18n();
Expand Down Expand Up @@ -81,7 +81,7 @@ async function signIn(e: Event) {
<NCheckbox size="large">
{{ t('page.login.form.remember') }}
</NCheckbox>
<NButton text type="primary" @click="emit('forgot-password')">
<NButton text type="primary" @click="emit('forgotPassword')">
{{ t('page.login.form.forgetPassword') }}
</NButton>
</div>
Expand Down
4 changes: 2 additions & 2 deletions apps/admin/src/pages/login/components/AuthForm/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ onBeforeMount(() => {
<Transition
appear :name="RouterTransitionConstants.FADE_SLIDE" mode="out-in"
>
<SignIn v-if="typeRef === 'signIn'" key="signin" @forgot-password="gotoForgotPassword()" />
<ForgotPassword v-else-if="typeRef === 'forgotPassword'" key="forgotpassword" />
<SignIn v-if="typeRef === 'signIn'" key="signIn" @forgot-password="gotoForgotPassword()" />
<ForgotPassword v-else-if="typeRef === 'forgotPassword'" key="forgotPassword" />
<SignUp v-else-if="typeRef === 'signUp'" key="signup" />
</Transition>
</div>
Expand Down

0 comments on commit a5543ee

Please sign in to comment.