fix: mainAppRef inject logic

This commit is contained in:
starknt
2024-01-26 15:05:27 +08:00
parent 767e8a7aa6
commit a37c8ad13e
2 changed files with 2 additions and 6 deletions

View File

@@ -1,11 +1,9 @@
<script setup lang="ts">
import type { Ref } from 'vue'
import type { HoveringDockItem } from './types'
import { settings } from '~/logic'
const emit = defineEmits(['settings-visibility-change'])
const mainAppRef = inject('mainAppRef') as Ref<HTMLDivElement>
const { mainAppRef } = useBewlyApp()
const hoveringDockItem = reactive<HoveringDockItem>({
themeMode: false,