diff --git a/src/components/ToggleDark/index.vue b/src/components/ToggleDark/index.vue deleted file mode 100644 index 0787ff4..0000000 --- a/src/components/ToggleDark/index.vue +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - diff --git a/src/layout/components/HeaderRightBar/Search.vue b/src/layout/components/HeaderRightBar/Search.vue index 4cfa422..4a3f315 100644 --- a/src/layout/components/HeaderRightBar/Search.vue +++ b/src/layout/components/HeaderRightBar/Search.vue @@ -1,3 +1,82 @@ + + + + + 搜索 + + + Ctrl + K + + + + + + + + + + ESC 退出 + + + + + + + 搜索到 {{ searchResults.length }} 个结果 + + + + + + {{ item.title }} + + + + + + + + 搜索历史 + + + 清空历史 + + + + + + + {{ item.title }} + + + + + + + + + 切换 + + + + 选择 + + + + + + - - - - - 搜索 - - - Ctrl + K - - - - - - - - - - ESC 退出 - - - - - - - 搜索到 {{ searchResults.length }} 个结果 - - - - - - {{ item.title }} - - - - - - - - 搜索历史 - - - 清空历史 - - - - - - - {{ item.title }} - - - - - - - - - 切换 - - - - 选择 - - - - - - diff --git a/src/layout/components/HeaderRightBar/index.vue b/src/layout/components/HeaderRightBar/index.vue index a41c303..cf35947 100644 --- a/src/layout/components/HeaderRightBar/index.vue +++ b/src/layout/components/HeaderRightBar/index.vue @@ -2,7 +2,7 @@ - + @@ -43,7 +43,7 @@ - + @@ -80,10 +80,11 @@ import Search from './Search.vue' import { getUnreadMessageCount } from '@/apis' import { useUserStore } from '@/stores' import { getToken } from '@/utils/auth' -import { useBreakpoint } from '@/hooks' +import { useBreakpoint, useDevice } from '@/hooks' defineOptions({ name: 'HeaderRight' }) +const { isDesktop } = useDevice() const { breakpoint } = useBreakpoint() let socket: WebSocket onBeforeUnmount(() => { diff --git a/src/styles/global.scss b/src/styles/global.scss index 6e43b6a..ecfda8f 100644 --- a/src/styles/global.scss +++ b/src/styles/global.scss @@ -529,20 +529,3 @@ border-radius: 0 4px 4px 0; } } - -// 禁用 view-transition 动画 -::view-transition-old(root), -::view-transition-new(root) { - animation: none; - mix-blend-mode: normal; -} - -::view-transition-old(root), -.dark::view-transition-new(root) { - z-index: 1; -} - -::view-transition-new(root), -.dark::view-transition-old(root) { - z-index: 9999; -} diff --git a/src/views/login/index.vue b/src/views/login/index.vue index aa12811..ee4afa0 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -47,7 +47,7 @@ - + diff --git a/src/views/login/pwdExpired/index.vue b/src/views/login/pwdExpired/index.vue index ed2d83f..533b248 100644 --- a/src/views/login/pwdExpired/index.vue +++ b/src/views/login/pwdExpired/index.vue @@ -36,7 +36,7 @@ - +