fix:修改错别字 (#600)

This commit is contained in:
dufu1991 2023-09-06 17:01:15 +08:00 committed by GitHub
parent 334d2251ab
commit d775bc3aa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -39,7 +39,7 @@
</div> </div>
</template> </template>
<!-- 扫码登 --> <!-- 扫码登 -->
<template v-else-if="type == 'qrcode'"> <template v-else-if="type == 'qrcode'">
<div class="tip-container"> <div class="tip-container">
<span class="tip">请使用微信扫一扫登录</span> <span class="tip">请使用微信扫一扫登录</span>
@ -48,7 +48,7 @@
<qrcode-vue value="" :size="160" level="H" /> <qrcode-vue value="" :size="160" level="H" />
</template> </template>
<!-- 手机号登 --> <!-- 手机号登 -->
<template v-else> <template v-else>
<t-form-item name="phone"> <t-form-item name="phone">
<t-input v-model="formData.phone" size="large" placeholder="请输入手机号码"> <t-input v-model="formData.phone" size="large" placeholder="请输入手机号码">
@ -136,7 +136,7 @@ const onSubmit = async (ctx: SubmitContext) => {
try { try {
await userStore.login(formData.value); await userStore.login(formData.value);
MessagePlugin.success('登成功'); MessagePlugin.success('登成功');
const redirect = route.query.redirect as string; const redirect = route.query.redirect as string;
const redirectUrl = redirect ? decodeURIComponent(redirect) : '/dashboard'; const redirectUrl = redirect ? decodeURIComponent(redirect) : '/dashboard';
router.push(redirectUrl); router.push(redirectUrl);

View File

@ -42,7 +42,7 @@ export const useUserStore = defineStore('user', {
// }[password]; // }[password];
return { return {
code: 200, code: 200,
message: '登成功', message: '登成功',
data: 'main_token', data: 'main_token',
}; };
}; };