Browse Source

优化一下

jly/task002
mk 2 years ago
parent
commit
3cd931e6db
  1. 10
      src/views/main-content.vue

10
src/views/main-content.vue

@ -42,7 +42,7 @@
<template v-if="tabIsIframe(item.iframeURL)">
<iframe
:src="
item.iframeURL + '&token=' + token + '&customerId=' + customerId
item.iframeURL +urlTokenSymbol+ 'token=' + token + '&customerId=' + customerId
"
ref="iframes"
class="iframes"
@ -122,7 +122,8 @@ export default {
form: {},
formType: '',
formLabelWidth: '120px',
tipsList: []
tipsList: [],
urlTokenSymbol:''
};
},
created() {
@ -148,14 +149,15 @@ export default {
},
// tabs, iframe
tabIsIframe(url) {
// this.appendIframe(url)
this.urlTokenSymbol = url.includes("?source=") ? '&' : '?'
this.iframeUrl =
url +
"&token=" +
"?token=" +
localStorage.getItem("token") +
"&customerId=" +
localStorage.getItem("customerId");
return isURL(url);
// this.appendIframe(url)
},
// tabs, tab
tabSelectedHandle(tab) {

Loading…
Cancel
Save