parent
63e3960465
commit
272642ec97
@ -1,6 +1,7 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import type { FormInstance, FormRules } from "element-plus"
|
import type { FormInstance, FormRules } from "element-plus"
|
||||||
import type { LoginRequestData } from "./apis/type"
|
import type { LoginRequestData } from "./apis/type"
|
||||||
|
import { useSettingsStore } from "@/pinia/stores/settings"
|
||||||
import { useUserStore } from "@/pinia/stores/user"
|
import { useUserStore } from "@/pinia/stores/user"
|
||||||
import ThemeSwitch from "@@/components/ThemeSwitch/index.vue"
|
import ThemeSwitch from "@@/components/ThemeSwitch/index.vue"
|
||||||
import { Key, Loading, Lock, Picture, User } from "@element-plus/icons-vue"
|
import { Key, Loading, Lock, Picture, User } from "@element-plus/icons-vue"
|
||||||
@ -12,6 +13,8 @@ const router = useRouter()
|
|||||||
|
|
||||||
const userStore = useUserStore()
|
const userStore = useUserStore()
|
||||||
|
|
||||||
|
const settingsStore = useSettingsStore()
|
||||||
|
|
||||||
const { isFocus, handleBlur, handleFocus } = useFocus()
|
const { isFocus, handleBlur, handleFocus } = useFocus()
|
||||||
|
|
||||||
/** 登录表单元素的引用 */
|
/** 登录表单元素的引用 */
|
||||||
@ -82,7 +85,7 @@ createCode()
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="login-container">
|
<div class="login-container">
|
||||||
<ThemeSwitch class="theme-switch" />
|
<ThemeSwitch v-if="settingsStore.showThemeSwitch" class="theme-switch" />
|
||||||
<Owl :close-eyes="isFocus" />
|
<Owl :close-eyes="isFocus" />
|
||||||
<div class="login-card">
|
<div class="login-card">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user