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 } }