From 937ee72160350e48c329c0675bba7c4b8e678dbe Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Mon, 29 Apr 2024 15:12:24 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=B5=8C=E5=85=A5=E5=BC=8F):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=A4=A7=E5=B1=8F=E6=A0=91-div=20=E5=B5=8C=E5=85=A5-?= =?UTF-8?q?=E6=96=B0=E5=BB=BA=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E5=9B=BE=E5=B1=82=E3=80=81=E7=94=BB=E5=B8=83=E3=80=81?= =?UTF-8?q?=E5=A4=A7=E5=B1=8F=E9=85=8D=E7=BD=AE=E9=94=99=E4=BD=8D=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/router/embedded.ts | 17 +---------------- .../core-frontend/src/views/dashboard/index.vue | 6 +++++- .../src/views/data-visualization/index.vue | 11 +++++++++-- .../src/views/template-market/index.vue | 15 +++++++++++---- 4 files changed, 26 insertions(+), 23 deletions(-) diff --git a/core/core-frontend/src/router/embedded.ts b/core/core-frontend/src/router/embedded.ts index 61a9b4e939..908178909c 100644 --- a/core/core-frontend/src/router/embedded.ts +++ b/core/core-frontend/src/router/embedded.ts @@ -2,22 +2,7 @@ import { createRouter, createWebHashHistory } from 'vue-router' import type { RouteRecordRaw } from 'vue-router' import type { App } from 'vue' -export const routes: AppRouteRecordRaw[] = [ - { - path: '/dvCanvas', - name: 'dvCanvas', - hidden: true, - meta: {}, - component: () => import('@/views/data-visualization/index.vue') - }, - { - path: '/dashboard', - name: 'dashboard', - hidden: true, - meta: {}, - component: () => import('@/views/dashboard/index.vue') - } -] +export const routes: AppRouteRecordRaw[] = [] const router = createRouter({ history: createWebHashHistory(), diff --git a/core/core-frontend/src/views/dashboard/index.vue b/core/core-frontend/src/views/dashboard/index.vue index 632af72194..7d382264c4 100644 --- a/core/core-frontend/src/views/dashboard/index.vue +++ b/core/core-frontend/src/views/dashboard/index.vue @@ -100,10 +100,14 @@ const onMobileConfig = () => { } const loadFinish = ref(false) +const newWindowFromDiv = ref(false) let p = null const XpackLoaded = () => p(true) // 全局监听按键事件 onMounted(async () => { + if (window.location.hash.includes('#/dashboard')) { + newWindowFromDiv.value = true + } await new Promise(r => (p = r)) loadFinish.value = true useEmitt({ @@ -185,7 +189,7 @@ onUnmounted(() => {