diff --git a/webs/oms-web/src/config.js b/webs/oms-web/src/config.js index 08feb4c..8b2c7e2 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 = '/monitor' +export const homePath = '/dashboard' export const isConsole = false export const loginKey = 'cmcLoginData' export function resetLicense() { diff --git a/webs/oms-web/src/views/iframe.vue b/webs/oms-web/src/views/iframe.vue index 8eac4f5..8b1e488 100644 --- a/webs/oms-web/src/views/iframe.vue +++ b/webs/oms-web/src/views/iframe.vue @@ -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 }