|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
<script setup lang="ts"> |
|
|
|
|
import tinycolor from 'tinycolor2' |
|
|
|
|
import type { GlobalEvents } from '~/lib' |
|
|
|
|
import { |
|
|
|
|
TabType, |
|
|
|
|
computed, |
|
|
|
@ -38,7 +39,7 @@ const { theme, defaultTheme } = useTheme()
|
|
|
|
|
|
|
|
|
|
const { t } = useI18n() |
|
|
|
|
|
|
|
|
|
const { $e } = useNuxtApp() |
|
|
|
|
const { $e, $globalEventBus } = useNuxtApp() |
|
|
|
|
|
|
|
|
|
const route = useRoute() |
|
|
|
|
|
|
|
|
@ -187,7 +188,16 @@ onBeforeMount(async () => {
|
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
const FOO = (ev: GlobalEvents) => { |
|
|
|
|
console.log(ev) |
|
|
|
|
// alert('event') |
|
|
|
|
if (isMobileMode) { |
|
|
|
|
toggle(false) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
onMounted(() => { |
|
|
|
|
$globalEventBus.on(FOO) |
|
|
|
|
toggle(true) |
|
|
|
|
toggleHasSidebar(true) |
|
|
|
|
}) |
|
|
|
|