diff --git a/core/core-frontend/src/permission.ts b/core/core-frontend/src/permission.ts index 5cf6757e0c..af09bd08e9 100644 --- a/core/core-frontend/src/permission.ts +++ b/core/core-frontend/src/permission.ts @@ -39,6 +39,8 @@ router.beforeEach(async (to, from, next) => { loadDone() if (to.name === 'link') { window.location.href = window.origin + '/mobile.html#' + to.path + } else if (to.path === '/dvCanvas') { + window.location.href = window.origin + '/mobile.html#' + to.path } else if ( wsCache.get('user.token') || isDesktop || diff --git a/core/core-frontend/src/permissionMobile.ts b/core/core-frontend/src/permissionMobile.ts index 0af6b4b952..3e2b3c5943 100644 --- a/core/core-frontend/src/permissionMobile.ts +++ b/core/core-frontend/src/permissionMobile.ts @@ -17,7 +17,7 @@ const { start, done } = useNProgress() const interactiveStore = interactiveStoreWithOut() const { loadStart, loadDone } = usePageLoading() -const whiteList = ['/login', '/panel'] // 不重定向白名单 +const whiteList = ['/login', '/panel', '/dvCanvas'] // 不重定向白名单 router.beforeEach(async (to, _, next) => { start() diff --git a/core/core-frontend/src/router/mobile.ts b/core/core-frontend/src/router/mobile.ts index 187efe98b7..72343698db 100644 --- a/core/core-frontend/src/router/mobile.ts +++ b/core/core-frontend/src/router/mobile.ts @@ -51,6 +51,13 @@ export const routes: AppRouteRecordRaw[] = [ hidden: true, meta: {}, component: () => import('@/views/mobile/panel/Mobile.vue') + }, + { + path: '/dvCanvas', + name: 'dv', + hidden: true, + meta: {}, + component: () => import('@/views/mobile/panel/NotSupport.vue') } ] diff --git a/core/core-frontend/src/views/mobile/panel/NotSupport.vue b/core/core-frontend/src/views/mobile/panel/NotSupport.vue new file mode 100644 index 0000000000..3f151c1e2f --- /dev/null +++ b/core/core-frontend/src/views/mobile/panel/NotSupport.vue @@ -0,0 +1,14 @@ + + 请注意,数据大屏不支持在移动端查阅! + + + diff --git a/core/core-frontend/src/views/share/link/mobile.vue b/core/core-frontend/src/views/share/link/mobile.vue index d30cfde54e..156e2a394b 100644 --- a/core/core-frontend/src/views/share/link/mobile.vue +++ b/core/core-frontend/src/views/share/link/mobile.vue @@ -1,8 +1,5 @@ - + @@ -15,22 +12,16 @@ :dv-info="state.dvInfo" :cur-gap="state.curPreviewGap" > -