From b0964d407c350b96d58aae24b542a29231993260 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=8A=B2=E9=BE=99?= <2860996570@qq.com> Date: Wed, 9 Aug 2023 10:17:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BA=86iframe=E7=9A=84url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productsMsg/components/productInfo.vue | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/src/views/productsMsg/components/productInfo.vue b/src/views/productsMsg/components/productInfo.vue index b5c0839..96d3510 100644 --- a/src/views/productsMsg/components/productInfo.vue +++ b/src/views/productsMsg/components/productInfo.vue @@ -3,10 +3,10 @@ @@ -17,28 +17,28 @@ export default { iframViewStyle: { height: "", }, - // url: `https://dev-mssm-liaoning.imian.org.cn/ggfw-iframe/#/productinformation?type=${ - // this.$route.query.type - // }&flag=${this.$route.query.flag}&data=${ - // this.$route.query.data - // }&token=${localStorage.getItem("MSSM-LIAONING__TOKEN")}`, - url: `https://dev-mssm-liaoning.imian.org.cn/ggfw-iframe/#/productinformation` + Url: `${location.origin}/ggfw-iframe/#/productinformation?type=${ + this.$route.query.type + }&flag=${this.$route.query.flag}&data=${ + this.$route.query.data + }&token=${localStorage.getItem("MSSM-LIAONING__TOKEN")}`, + }; }, - methods: {}, + methods: {}, created() { - this.$nextTick(() => { - let oFrame = this.$refs.iframes; - oFrame.contentWindow.postMessage( - { - type: this.$route.query.type, - flag: this.$route.query.flag, - data: this.$route.query.data, - token: localStorage.getItem("MSSM-LIAONING__TOKEN"), - }, - "*" - ); - }); + // this.$nextTick(() => { + // let oFrame = this.$refs.iframes; + // oFrame.contentWindow.postMessage( + // { + // type: this.$route.query.type, + // flag: this.$route.query.flag, + // data: this.$route.query.data, + // token: localStorage.getItem("MSSM-LIAONING__TOKEN"), + // }, + // "*" + // ); + // }); }, methods: {}, mounted() {