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(() => {