From 75235c6195e05d4f7c111655ce03c24a24f00981 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=B6=E5=90=AF=E9=BE=99?= Date: Wed, 4 Sep 2024 18:50:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=84=E7=90=86=20iframe=20=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E5=85=BC=E5=AE=B9=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/common/utils/url.ts | 8 +++++++- webs/oms-web/src/config.js | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/common/utils/url.ts b/packages/common/utils/url.ts index 0fcf66e..85f61f0 100644 --- a/packages/common/utils/url.ts +++ b/packages/common/utils/url.ts @@ -11,8 +11,14 @@ export function appendParamsToUrl(url = '', pathname = '', params: Record -1) { + if (result.endsWith('&')) { + result += searchParams.toString() + } else { + result += '&' + searchParams.toString() + } } else { result += '?' + searchParams.toString() } diff --git a/webs/oms-web/src/config.js b/webs/oms-web/src/config.js index 9eaa347..08feb4c 100644 --- a/webs/oms-web/src/config.js +++ b/webs/oms-web/src/config.js @@ -16,7 +16,7 @@ export const tokenKey = 'CMC_TOKEN' export const cacheViewMax = 15 export const baseUrl = '/oms-web' // 默认跳转地址 -export const homePath = '/dashbaord' +export const homePath = '/monitor' export const isConsole = false export const loginKey = 'cmcLoginData' export function resetLicense() {