|
|
@ -24,7 +24,7 @@ export default { |
|
|
|
// this.$nextTick(() => { |
|
|
|
// this.sendMessage() |
|
|
|
// }) |
|
|
|
this.token = Cookie.get('token') |
|
|
|
this.token = localStorage.getItem('token') |
|
|
|
this.customerId = localStorage.getItem('customerId') |
|
|
|
}, |
|
|
|
methods: { |
|
|
@ -34,7 +34,7 @@ export default { |
|
|
|
// tabs, 是否通过iframe展示 |
|
|
|
tabIsIframe (url) { |
|
|
|
// this.appendIframe(url) |
|
|
|
this.iframeUrl = url + '?token=' + Cookie.get('token') + '&customerId=' + localStorage.getItem('customerId') |
|
|
|
this.iframeUrl = url + '?token=' + localStorage.getItem('token') + '&customerId=' + localStorage.getItem('customerId') |
|
|
|
return isURL(url) |
|
|
|
}, |
|
|
|
// tabs, 选中tab |
|
|
@ -85,7 +85,7 @@ export default { |
|
|
|
|
|
|
|
console.log('iframe', iframe) |
|
|
|
// iframe.postMessage({ |
|
|
|
// token: Cookie.get('token'), |
|
|
|
// token: localStorage.getItem('token'), |
|
|
|
// customerId: localStorage.getItem('customerId') |
|
|
|
// }, '*') |
|
|
|
iframe.postMessage({ name: 'lalalal' }, '*') |
|
|
|