|
|
@ -32,8 +32,8 @@ |
|
|
|
:class="{ 'is-iframe': tabIsIframe(item.iframeURL) }" |
|
|
|
> |
|
|
|
<template v-if="tabIsIframe(item.iframeURL)"> |
|
|
|
<iframe |
|
|
|
:src="computedIframeUrl(item)" |
|
|
|
<iframe |
|
|
|
:src="item.iframeURL + '?token=' + `${item.query.openwebuiToken?item.query.openwebuiToken:token}` + '&customerId=' + customerId" |
|
|
|
ref="iframes" |
|
|
|
class="iframes" |
|
|
|
id="iframes" |
|
|
@ -140,7 +140,6 @@ export default { |
|
|
|
this.token = localStorage.getItem("token"); |
|
|
|
this.customerId = localStorage.getItem("customerId"); |
|
|
|
this.loopTips(); |
|
|
|
this.geOpenwebuiToken() |
|
|
|
}, |
|
|
|
destroyed() { |
|
|
|
this.$store.dispatch("clearInter"); |
|
|
@ -156,12 +155,6 @@ export default { |
|
|
|
const token = item.iframeURL === process.env.VUE_APP_AI_URL ? this.webUiToken : this.token; |
|
|
|
return `${item.iframeURL}?token=${token}&customerId=${this.customerId}`; |
|
|
|
}, |
|
|
|
async geOpenwebuiToken(){ |
|
|
|
const {code,data} = await requestGet('/epmetuser/userOpenwebui/token') |
|
|
|
if(code === 0 ){ |
|
|
|
this.webUiToken = data; |
|
|
|
} |
|
|
|
}, |
|
|
|
toPage(path) { |
|
|
|
if (path) { |
|
|
|
this.$router.push({ |
|
|
|