chore: Tidy up the code

This commit is contained in:
Hakadao
2022-04-04 21:29:12 +08:00
parent 4c4ddcbd3c
commit 15948968db

View File

@@ -44,24 +44,16 @@
</template>
<script setup lang="ts">
import { accessKey, apperance, isShowTopbar } from '~/logic/storage'
import { useToggle, useDark } from '@vueuse/core'
import { apperance, isShowTopbar } from '~/logic/storage'
import 'virtual:windi.css'
import '~/styles/index.ts'
import Home from './Home/index.vue'
import { getUserID, grantAccessKey } from '~/utils'
const [showSettings, toggle] = useToggle(false)
// auto dark mode
// const style = document.createElement('style')
const isDark = useDark()
const toggleDark = useToggle(isDark)
// if (getUserID())
// grantAccessKey()
</script>
<style lang="scss">