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