Skip to content

Commit

Permalink
fix:修改错别字 (#600)
Browse files Browse the repository at this point in the history
  • Loading branch information
dufu1991 authored Sep 6, 2023
1 parent 334d225 commit d775bc3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/pages/login/components/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
</div>
</template>

<!-- 扫码登陆 -->
<!-- 扫码登录 -->
<template v-else-if="type == 'qrcode'">
<div class="tip-container">
<span class="tip">请使用微信扫一扫登录</span>
Expand All @@ -48,7 +48,7 @@
<qrcode-vue value="" :size="160" level="H" />
</template>

<!-- 手机号登陆 -->
<!-- 手机号登录 -->
<template v-else>
<t-form-item name="phone">
<t-input v-model="formData.phone" size="large" placeholder="请输入手机号码">
Expand Down Expand Up @@ -136,7 +136,7 @@ const onSubmit = async (ctx: SubmitContext) => {
try {
await userStore.login(formData.value);
MessagePlugin.success('登陆成功');
MessagePlugin.success('登录成功');
const redirect = route.query.redirect as string;
const redirectUrl = redirect ? decodeURIComponent(redirect) : '/dashboard';
router.push(redirectUrl);
Expand Down
2 changes: 1 addition & 1 deletion src/store/modules/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const useUserStore = defineStore('user', {
// }[password];
return {
code: 200,
message: '登陆成功',
message: '登录成功',
data: 'main_token',
};
};
Expand Down

0 comments on commit d775bc3

Please sign in to comment.