diff --git a/src/layout/default/TheTab/src/components/tabsContentMain.vue b/src/layout/default/TheTab/src/components/tabsContentMain.vue index f925a116..a344fa1d 100644 --- a/src/layout/default/TheTab/src/components/tabsContentMain.vue +++ b/src/layout/default/TheTab/src/components/tabsContentMain.vue @@ -81,7 +81,7 @@ const { t } = useAppI18n() const { currentRoute } = useAppRouter() - const { app, appMemo, tab, settings } = useAppState() + const { appMemo, tab, settings } = useAppState() const tabSettings = settings.value.ForDevelopers.tab const { @@ -116,7 +116,8 @@ onOpenDevTool(e, item, index, ctxMenuShow.value) // start bounce - if (item.name === currentRoute.value.name) startBounce() + if (!appMemo.value.isMobile && item.name === currentRoute.value.name) + startBounce() } const onMouseLeave = (index: number) => { @@ -124,7 +125,11 @@ clearTimeout(timeoutId.value!) // stop bounce - if (currentMouseTab.value?.name === currentRoute.value.name) stopBounce() + if ( + !appMemo.value.isMobile && + currentMouseTab.value?.name === currentRoute.value.name + ) + stopBounce() } const onMouseUp = (e: MouseEvent, name: string) => { diff --git a/src/layout/default/TheTab/src/index.vue b/src/layout/default/TheTab/src/index.vue index f38f04dc..b7a53ce4 100644 --- a/src/layout/default/TheTab/src/index.vue +++ b/src/layout/default/TheTab/src/index.vue @@ -38,10 +38,12 @@ import { setTabsContext } from './hooks/useTabsContext' import { isDev } from '/@/utils/constant/vue' - const { settings } = useAppState() + const { appMemo, settings } = useAppState() const tabSettings = settings.value.ForDevelopers.tab - const getShowDevTools = computed(() => isDev() && tabSettings.devtool) + const getShowDevTools = computed( + () => isDev() && !appMemo.value.isMobile && tabSettings.devtool + ) const { scrollRef, getCurrentRouteTabIndex } = useTabs()