From 0307b1b3e9a30503fe871c24bb3909c2eb99dabd Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Thu, 28 Dec 2023 18:49:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B5=8C=E5=85=A5=E5=BC=8F=E6=9D=83?= =?UTF-8?q?=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/flushbonading/index.js | 3 ++- .../src/layout/components/ToolboxCfg.vue | 1 - .../src/pages/panel/DashboardPreview.vue | 22 ++++++++++++++++--- .../src/pages/panel/ViewWrapper.vue | 21 +++++++++++++++++- .../src/store/modules/interactive.ts | 2 +- .../src/utils/CrossPermission.ts | 7 ++++-- .../src/views/dashboard/index.vue | 21 ++++++++++++++---- .../src/views/data-visualization/index.vue | 21 ++++++++++++++---- 8 files changed, 81 insertions(+), 17 deletions(-) diff --git a/core/core-frontend/flushbonading/index.js b/core/core-frontend/flushbonading/index.js index 0ed1ec21ef..f53b354c67 100644 --- a/core/core-frontend/flushbonading/index.js +++ b/core/core-frontend/flushbonading/index.js @@ -114,7 +114,8 @@ htmlStream.pipe(parserStream).on('finish', () => { let element = document.createElement(name) Object.entries(obj).forEach(([key, value]) => { if (['href', 'src'].includes(key)) { - element[key] = \`\${preUrl}\${value}\` + const relativeVal = value.startsWith('./') ? value.substr(1) : value + element[key] = \`\${preUrl}\${relativeVal}\` } else { element.setAttribute(key, value || '') } diff --git a/core/core-frontend/src/layout/components/ToolboxCfg.vue b/core/core-frontend/src/layout/components/ToolboxCfg.vue index 12101e8fa7..9b0d8a8d21 100644 --- a/core/core-frontend/src/layout/components/ToolboxCfg.vue +++ b/core/core-frontend/src/layout/components/ToolboxCfg.vue @@ -31,7 +31,6 @@ const loadInfoList = () => { } const toRouter = item => { - console.log(item) push({ name: item.rName }) } onMounted(() => { diff --git a/core/core-frontend/src/pages/panel/DashboardPreview.vue b/core/core-frontend/src/pages/panel/DashboardPreview.vue index 36ba60e391..e0edee1f14 100644 --- a/core/core-frontend/src/pages/panel/DashboardPreview.vue +++ b/core/core-frontend/src/pages/panel/DashboardPreview.vue @@ -1,7 +1,11 @@