fix: 监控单独处理 ifrmae 地址
							parent
							
								
									b1ca8c7324
								
							
						
					
					
						commit
						768259ff5f
					
				| 
						 | 
					@ -16,7 +16,7 @@ export const tokenKey = 'CMC_TOKEN'
 | 
				
			||||||
export const cacheViewMax = 15
 | 
					export const cacheViewMax = 15
 | 
				
			||||||
export const baseUrl = '/oms-web'
 | 
					export const baseUrl = '/oms-web'
 | 
				
			||||||
// 默认跳转地址
 | 
					// 默认跳转地址
 | 
				
			||||||
export const homePath = '/monitor'
 | 
					export const homePath = '/dashboard'
 | 
				
			||||||
export const isConsole = false
 | 
					export const isConsole = false
 | 
				
			||||||
export const loginKey = 'cmcLoginData'
 | 
					export const loginKey = 'cmcLoginData'
 | 
				
			||||||
export function resetLicense() {
 | 
					export function resetLicense() {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -26,7 +26,8 @@ export default {
 | 
				
			||||||
        token: getToken(),
 | 
					        token: getToken(),
 | 
				
			||||||
        ...(this.$route.query || {})
 | 
					        ...(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)
 | 
					      console.log('iframeUrl: ', url)
 | 
				
			||||||
      return url
 | 
					      return url
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue