From 768259ff5fc36dd7ba8022327e6a5effe89cef76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=B6=E5=90=AF=E9=BE=99?= Date: Thu, 5 Sep 2024 11:26:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=9B=91=E6=8E=A7=E5=8D=95=E7=8B=AC?= =?UTF-8?q?=E5=A4=84=E7=90=86=20ifrmae=20=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webs/oms-web/src/config.js | 2 +- webs/oms-web/src/views/iframe.vue | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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 }