Skip to content

Commit

Permalink
fix: 修复登录页的主题切换按钮不能跟随配置 (#230)
Browse files Browse the repository at this point in the history
Co-authored-by: pany <[email protected]>
  • Loading branch information
mowangjuanzi and pany-ang authored Dec 10, 2024
1 parent 63e3960 commit 272642e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pages/login/index.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<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"
Expand All @@ -12,6 +13,8 @@ const router = useRouter()
const userStore = useUserStore()
const settingsStore = useSettingsStore()
const { isFocus, handleBlur, handleFocus } = useFocus()
/** 登录表单元素的引用 */
Expand Down Expand Up @@ -82,7 +85,7 @@ createCode()

<template>
<div class="login-container">
<ThemeSwitch class="theme-switch" />
<ThemeSwitch v-if="settingsStore.showThemeSwitch" class="theme-switch" />
<Owl :close-eyes="isFocus" />
<div class="login-card">
<div class="title">
Expand Down

0 comments on commit 272642e

Please sign in to comment.