Template
1
0
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:
mowangjuanzi 2024-12-09 23:41:23 +08:00 committed by GitHub
parent 63e3960465
commit 1e47fbd2a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,6 +7,9 @@ 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()
@ -82,7 +85,7 @@ createCode()
<template>
<div class="login-container">
<ThemeSwitch class="theme-switch" />
<ThemeSwitch class="theme-switch" v-if="showThemeSwitch" />
<Owl :close-eyes="isFocus" />
<div class="login-card">
<div class="title">