diff --git a/src/layouts/modules/global-tab/index.vue b/src/layouts/modules/global-tab/index.vue index e87527a7..7e95fbaf 100644 --- a/src/layouts/modules/global-tab/index.vue +++ b/src/layouts/modules/global-tab/index.vue @@ -8,6 +8,7 @@ import { useAppStore } from '@/store/modules/app'; import { useThemeStore } from '@/store/modules/theme'; import { useRouteStore } from '@/store/modules/route'; import { useTabStore } from '@/store/modules/tab'; +import { isPC } from '@/utils/agent'; import ContextMenu from './context-menu.vue'; defineOptions({ @@ -24,6 +25,7 @@ const bsWrapper = ref(); const { width: bsWrapperWidth, left: bsWrapperLeft } = useElementBounding(bsWrapper); const bsScroll = ref>(); const tabRef = ref(); +const isPCFlag = isPC(); const TAB_DATA_ID = 'data-tab-id'; @@ -166,7 +168,7 @@ init();