mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-11-10 06:58:23 +08:00
fix:修改错别字 (#600)
This commit is contained in:
parent
334d2251ab
commit
d775bc3aa9
|
@ -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);
|
||||||
|
|
|
@ -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',
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user