diff --git a/ui/src/layout/hooks/useResize.ts b/ui/src/layout/hooks/useResize.ts index 3b0e46577..4ebd88f5c 100644 --- a/ui/src/layout/hooks/useResize.ts +++ b/ui/src/layout/hooks/useResize.ts @@ -1,5 +1,4 @@ import { nextTick, onBeforeMount, onMounted, onBeforeUnmount } from 'vue' -import { useRoute } from 'vue-router' import useStore from '@/stores' import { DeviceType } from '@/enums/common' /** 参考 Bootstrap 的响应式设计 WIDTH = 768 */ @@ -32,7 +31,7 @@ export default () => { }) }) - onBeforeUnmount(() => { - window.removeEventListener('resize', _resizeHandler) - }) + // onBeforeUnmount(() => { + // window.removeEventListener('resize', _resizeHandler) + // }) } diff --git a/ui/src/styles/app.scss b/ui/src/styles/app.scss index 4d30efb23..7b77ff934 100644 --- a/ui/src/styles/app.scss +++ b/ui/src/styles/app.scss @@ -533,5 +533,5 @@ h5 { .chat-background { background-repeat: no-repeat; background-position: center; - background-size: auto 100%; + background-size: cover; } diff --git a/ui/src/views/chat/index.vue b/ui/src/views/chat/index.vue index 0152a0eb4..90896eceb 100644 --- a/ui/src/views/chat/index.vue +++ b/ui/src/views/chat/index.vue @@ -21,10 +21,10 @@ const components: any = import.meta.glob('@/views/chat/**/index.vue', { const { query: { mode }, - params: { accessToken }, } = route as any const currentTemplate = computed(() => { + console.log(common.isMobile()) let modeName = '' if (!mode || mode === 'pc') { modeName = common.isMobile() ? 'mobile' : 'pc' diff --git a/ui/src/views/chat/mobile/index.vue b/ui/src/views/chat/mobile/index.vue index d3f617248..3e570adcf 100644 --- a/ui/src/views/chat/mobile/index.vue +++ b/ui/src/views/chat/mobile/index.vue @@ -2,6 +2,7 @@