fix: 监控单独处理 ifrmae 地址

develop
时启龙 2024-09-05 11:26:00 +08:00
parent b1ca8c7324
commit 768259ff5f
2 changed files with 3 additions and 2 deletions

View File

@ -16,7 +16,7 @@ export const tokenKey = 'CMC_TOKEN'
export const cacheViewMax = 15
export const baseUrl = '/oms-web'
// 默认跳转地址
export const homePath = '/monitor'
export const homePath = '/dashboard'
export const isConsole = false
export const loginKey = 'cmcLoginData'
export function resetLicense() {

View File

@ -26,7 +26,8 @@ export default {
token: getToken(),
...(this.$route.query || {})
}
const url = appendParamsToUrl(this.url, this.$route.path + (this.$route.meta?.pathname || ''), params)
const nginxPrefix = this.url.endsWith('monitor') ? '' : 'monitor'
const url = appendParamsToUrl(this.url, nginxPrefix + (this.$route.meta?.pathname || ''), params)
console.log('iframeUrl: ', url)
return url
}