mirror of
https://github.com/un-pany/v3-admin-vite.git
synced 2025-04-22 03:49:19 +08:00
Update index.vue
This commit is contained in:
parent
565d13e935
commit
08098cf633
@ -1,20 +1,20 @@
|
||||
<script lang="ts" setup>
|
||||
import type { FormInstance, FormRules } from "element-plus"
|
||||
import type { LoginRequestData } from "./apis/type"
|
||||
import { useSettingsStore } from "@/pinia/stores/settings"
|
||||
import { useUserStore } from "@/pinia/stores/user"
|
||||
import ThemeSwitch from "@@/components/ThemeSwitch/index.vue"
|
||||
import { Key, Loading, Lock, Picture, User } from "@element-plus/icons-vue"
|
||||
import { getLoginCodeApi, loginApi } from "./apis"
|
||||
import Owl from "./components/Owl.vue"
|
||||
import { useFocus } from "./composables/useFocus"
|
||||
import {useSettingsStore} from "@/pinia/stores/settings"
|
||||
const settingsStore = useSettingsStore()
|
||||
const { showThemeSwitch } = storeToRefs(settingsStore)
|
||||
|
||||
const router = useRouter()
|
||||
|
||||
const userStore = useUserStore()
|
||||
|
||||
const settingsStore = useSettingsStore()
|
||||
|
||||
const { isFocus, handleBlur, handleFocus } = useFocus()
|
||||
|
||||
/** 登录表单元素的引用 */
|
||||
@ -85,7 +85,7 @@ createCode()
|
||||
|
||||
<template>
|
||||
<div class="login-container">
|
||||
<ThemeSwitch class="theme-switch" v-if="showThemeSwitch" />
|
||||
<ThemeSwitch v-if="settingsStore.showThemeSwitch" class="theme-switch" />
|
||||
<Owl :close-eyes="isFocus" />
|
||||
<div class="login-card">
|
||||
<div class="title">
|
||||
|
Loading…
x
Reference in New Issue
Block a user