From a6a5c207056abc092c89953a800e699b61fdea11 Mon Sep 17 00:00:00 2001 From: xingyy <64720302+Concur-max@users.noreply.github.com> Date: Thu, 23 Jan 2025 15:24:49 +0800 Subject: [PATCH] =?UTF-8?q?refactor(app):=20=E7=A7=BB=E9=99=A4=E9=A2=9C?= =?UTF-8?q?=E8=89=B2=E6=A8=A1=E5=BC=8F=E7=9B=B8=E5=85=B3=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 删除了 app.vue 中的颜色模式相关代码 - 移除了 nuxt.config.js 中的 colorMode 配置 - 删除了 package.json 中的 @nuxtjs/color-mode 依赖 - 移除了 unocss 示例页面 - 注释掉了 liveRoom 页面中的视频播放代码 --- app/app.vue | 7 +- app/pages/liveRoom/index.client.vue | 4 +- app/pages/unocss/index.vue | 22 - nuxt.config.js | 11 +- package.json | 1 - pnpm-lock.yaml | 9472 --------------------------- 6 files changed, 5 insertions(+), 9512 deletions(-) delete mode 100644 app/pages/unocss/index.vue delete mode 100644 pnpm-lock.yaml diff --git a/app/app.vue b/app/app.vue index 2f90720..240e930 100644 --- a/app/app.vue +++ b/app/app.vue @@ -9,10 +9,7 @@ useHead({ {name: 'keywords', content: useI18n().t('appSetting.appKeyWords')}, ], }) -const color = useColorMode() -const mode = computed(() => { - return color.value -}) + // 添加路由中间件来处理过渡方向 const router = useRouter() @@ -42,7 +39,7 @@ provide('slideDirection', slideDirection)