From 7e2d54fcce6f20ff761ccd22f550f3aca6c49ff5 Mon Sep 17 00:00:00 2001 From: "34701892@qq.com" <34701892@qq.com> Date: Mon, 4 Aug 2025 10:23:43 +0800 Subject: [PATCH] =?UTF-8?q?refactor(router):=20=E7=A7=BB=E9=99=A4=E6=9C=AA?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E7=9A=84=E7=A7=BB=E5=8A=A8=E7=AB=AF=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E9=A1=B5=E8=B7=AF=E7=94=B1=E5=92=8C=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除不再使用的detailMobile路由配置和对应的组件文件,同时优化移动端布局显示逻辑 --- src/layout/component/main.vue | 14 ++++------ src/router/route.ts | 15 +--------- src/views/pages/richedit/detailMobile.vue | 34 ----------------------- 3 files changed, 7 insertions(+), 56 deletions(-) delete mode 100644 src/views/pages/richedit/detailMobile.vue diff --git a/src/layout/component/main.vue b/src/layout/component/main.vue index 36cec94..96a24f7 100644 --- a/src/layout/component/main.vue +++ b/src/layout/component/main.vue @@ -1,15 +1,12 @@ @@ -20,6 +17,7 @@ import { storeToRefs } from 'pinia'; import { useTagsViewRoutes } from '/@/stores/tagsViewRoutes'; import { useThemeConfig } from '/@/stores/themeConfig'; import { NextLoading } from '/@/utils/loading'; +import { isMobileByWidth } from '/@/utils/Utils' // 引入组件 const LayoutParentView = defineAsyncComponent(() => import('/@/layout/routerView/parent.vue')); diff --git a/src/router/route.ts b/src/router/route.ts index 4004803..a822d71 100644 --- a/src/router/route.ts +++ b/src/router/route.ts @@ -121,20 +121,7 @@ export const dynamicRoutes: Array = [ roles: ['admin'], }, }, - { - path: '/detailMobile', - name: 'detailMobile', - component: () => import('/@/views/pages/richedit/detailMobile.vue'), - meta: { - title: '详情', - isLink: '', - isHide: true, - isKeepAlive: true, - isAffix: true, - isIframe: false, - roles: ['admin'], - }, - }, + { path: '/richeditMobile', name: 'richeditMobile', diff --git a/src/views/pages/richedit/detailMobile.vue b/src/views/pages/richedit/detailMobile.vue deleted file mode 100644 index ad85642..0000000 --- a/src/views/pages/richedit/detailMobile.vue +++ /dev/null @@ -1,34 +0,0 @@ - - - - -