wip
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user