feat: 优化登录提醒弹窗
parent
5791478337
commit
12e1ca4c63
|
|
@ -42,7 +42,7 @@
|
||||||
<a-link @click="onForgetPassword">忘记密码?</a-link>
|
<a-link @click="onForgetPassword">忘记密码?</a-link>
|
||||||
</div>
|
</div>
|
||||||
<a-button type="primary" html-type="submit" long class="mt-2" :loading="loading" @click="onSubmitForm">
|
<a-button type="primary" html-type="submit" long class="mt-2" :loading="loading" @click="onSubmitForm">
|
||||||
{{ loading ? '登陆中' : '立即登录' }}
|
{{ loading ? "登陆中" : "立即登录" }}
|
||||||
</a-button>
|
</a-button>
|
||||||
<p type="text" long class="text-gray-400 text-center m-0">暂不支持其他方式登录</p>
|
<p type="text" long class="text-gray-400 text-center m-0">暂不支持其他方式登录</p>
|
||||||
</a-space>
|
</a-space>
|
||||||
|
|
@ -58,7 +58,7 @@
|
||||||
import { api } from "@/api";
|
import { api } from "@/api";
|
||||||
import { dayjs } from "@/libs";
|
import { dayjs } from "@/libs";
|
||||||
import { useAppStore, useUserStore } from "@/store";
|
import { useAppStore, useUserStore } from "@/store";
|
||||||
import { FieldRule, Form, Message, Modal } from "@arco-design/web-vue";
|
import { FieldRule, Form, Message, Modal, Notification } from "@arco-design/web-vue";
|
||||||
import { reactive } from "vue";
|
import { reactive } from "vue";
|
||||||
|
|
||||||
const meridiem = dayjs.localeData().meridiem(dayjs().hour(), dayjs().minute());
|
const meridiem = dayjs.localeData().meridiem(dayjs().hour(), dayjs().minute());
|
||||||
|
|
@ -102,7 +102,10 @@ const onSubmitForm = async () => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
const res = await api.auth.login(model);
|
const res = await api.auth.login(model);
|
||||||
userStore.setUser(res.data.data);
|
userStore.setUser(res.data.data);
|
||||||
Message.success(`欢迎回来,${res.data.data.nickname}!`);
|
Notification.success({
|
||||||
|
title: "提示",
|
||||||
|
content: `欢迎回来,${res.data.data.nickname}!`,
|
||||||
|
});
|
||||||
router.push({ path: (route.query.redirect as string) || "/" });
|
router.push({ path: (route.query.redirect as string) || "/" });
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
const message = error?.response?.data?.message;
|
const message = error?.response?.data?.message;
|
||||||
|
|
|
||||||
|
|
@ -153,7 +153,7 @@
|
||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div class="text-gray-900">支付功能</div>
|
<div class="text-gray-900 text-base">支付功能</div>
|
||||||
<div class="text-gray-400 mt-2">通知管理员由企业互联的管理员来设置,拥有通知业务的最大权限。</div>
|
<div class="text-gray-400 mt-2">通知管理员由企业互联的管理员来设置,拥有通知业务的最大权限。</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -109,7 +109,7 @@ const table = useTable({
|
||||||
{
|
{
|
||||||
field: "password",
|
field: "password",
|
||||||
label: "密码",
|
label: "密码",
|
||||||
type: "password",
|
type: "input",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: "roleIds",
|
field: "roleIds",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue