import useLayoutStore from '@/layout/useLayoutStore' import useUserStore from '@/user/useUserStore' import useRouterStore from '@/useRouterStore' import clsx from 'clsx' import { computed, defineComponent, Transition } from 'vue' export default defineComponent(() => { const router = useRouterStore() const { profile } = useUserStore() const show = computed(() => router.path.startsWith('settings-header')) const layout = useLayoutStore() const isGame = computed(() => { return layout.state.current === 0 }) return () => (
{/* 背景遮罩 */} {show.value && (
{ router.replace('') }} >
)} {/* 弹框主体 */} {show.value && (
)}
) })