This commit is contained in:
Zyronon
2025-12-26 18:55:30 +08:00
committed by GitHub
parent 4134b4b30b
commit e7e7b202bc
11 changed files with 321 additions and 261 deletions

View File

@@ -1,19 +1,24 @@
<script setup lang="ts">
import {useSettingStore} from "@/stores/setting.ts";
import { useSettingStore } from '@/stores/setting.ts'
import { useRouter } from 'vue-router'
import { IS_DEV } from '@/config/env'
const settingStore = useSettingStore()
const router = useRouter()
function goHome() {
router.push('/')
if (IS_DEV) {
router.push('/')
} else {
location.href = window.atob('aHR0cHM6Ly90eXBld29yZHMuY2M=')
}
}
</script>
<template>
<div class="center mb-2" @click="goHome">
<img v-show="settingStore.theme === 'dark'" src="/logo-text-white.png" alt="">
<img v-show="settingStore.theme !== 'dark'" src="/logo-text-black.png" alt="">
<img v-show="settingStore.theme === 'dark'" src="/logo-text-white.png" alt="" />
<img v-show="settingStore.theme !== 'dark'" src="/logo-text-black.png" alt="" />
</div>
</template>