From 6da6f589ec1e72bca394416e1f3998ba2cd0e3cd Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Tue, 19 Mar 2024 15:55:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=B5=8C=E5=85=A5=E5=BC=8F):=20=E5=90=8E?= =?UTF-8?q?=E7=AB=AF=E9=80=82=E9=85=8D=E5=8A=A8=E6=80=81=E5=89=8D=E7=BC=80?= =?UTF-8?q?=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/custom-component/v-query/DynamicTimeFiltering.vue | 1 - core/core-frontend/src/pages/panel/main.ts | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/core/core-frontend/src/custom-component/v-query/DynamicTimeFiltering.vue b/core/core-frontend/src/custom-component/v-query/DynamicTimeFiltering.vue index e0b212fcb2..6c0e156fc1 100644 --- a/core/core-frontend/src/custom-component/v-query/DynamicTimeFiltering.vue +++ b/core/core-frontend/src/custom-component/v-query/DynamicTimeFiltering.vue @@ -54,7 +54,6 @@ const timeConfig = computed(() => { watch( () => timeConfig.value, () => { - console.log(1) init() }, { diff --git a/core/core-frontend/src/pages/panel/main.ts b/core/core-frontend/src/pages/panel/main.ts index 12e82edd70..8d1a392fb4 100644 --- a/core/core-frontend/src/pages/panel/main.ts +++ b/core/core-frontend/src/pages/panel/main.ts @@ -36,10 +36,7 @@ const getPrefix = (): string => { url = ele.src } if (url.includes(suffix)) { - const { origin, pathname } = new URL(url) - const splitArr = pathname.split('/') - splitArr.pop() - prefix = `${origin}${splitArr.join('/')}` + prefix = new URL(url).origin return true } }