Kaynağa Gözat

improve: iframe模式判断

From-wh 2 yıl önce
ebeveyn
işleme
f78daf877d

+ 1 - 1
template/admin/src/pages/app/routine/download/index.vue

@@ -86,7 +86,7 @@ export default {
         sm: 24,
         xs: 24,
       },
-      iframeUrl: `${location.origin}/pages/index/index?type=iframeWindow`,
+      iframeUrl: `${location.origin}/pages/index/index?mdType=iframeWindow`,
       is_live: 1,
       pageData: {
         code: '',

+ 2 - 2
template/admin/src/pages/setting/devise/list.vue

@@ -284,7 +284,7 @@ export default {
   },
   created() {
     this.getList();
-    this.imgUrl = `${location.origin}/pages/index/index?type=iframeWindow`;
+    this.imgUrl = `${location.origin}/pages/index/index?mdType=iframeWindow`;
   },
   mounted: function () {},
   methods: {
@@ -294,7 +294,7 @@ export default {
     refreshFrame() {
       this.imgUrl = '';
       setTimeout((e) => {
-        this.imgUrl = `${location.origin}/pages/index/index?type=iframeWindow`;
+        this.imgUrl = `${location.origin}/pages/index/index?mdType=iframeWindow`;
       }, 200);
     },
     getChildData(e) {

+ 1 - 1
template/admin/src/pages/setting/devise/template.vue

@@ -47,7 +47,7 @@ export default {
     this.setConfig = 'admin/' + names + '/setConfig';
     this.updataConfig = 'admin/' + names + '/updataConfig';
     this.pageId = parseInt(pageId);
-    this.iframeUrl = `${location.origin}/pages/index/index?type=iframeWindow`;
+    this.iframeUrl = `${location.origin}/pages/index/index?mdType=iframeWindow`;
     diyGetInfo(parseInt(pageId)).then((datas) => {
       let data = datas.data.info.value;
       this.upData(data);

+ 2 - 2
template/admin/src/pages/setting/devisePage/index.vue

@@ -53,11 +53,11 @@ export default {
     this.pageId = parseInt(pageId);
     let moveLink = getCookies('moveLink');
     if (Number(this.$route.query.type) === 1) {
-      this.iframeUrl = `${moveLink}/pages/index/index?type=iframeWindow`;
+      this.iframeUrl = `${moveLink}/pages/index/index?mdType=iframeWindow`;
     } else {
       // this.iframeUrl = `https://v4.wuht.net/pages/index/index?type=iframeWindow`;
 
-      this.iframeUrl = `${location.origin}/pages/index/index?type=iframeWindow`;
+      this.iframeUrl = `${location.origin}/pages/index/index?mdType=iframeWindow`;
     }
     diyGetInfo(parseInt(pageId)).then((datas) => {
       let data = datas.data.info.value;

+ 1 - 1
template/uni-app/App.vue

@@ -124,7 +124,7 @@
 			uni.hideTabBar()
 			let that = this;
 			// #ifdef H5
-			if (option.query.hasOwnProperty('type') && option.query.type == "iframeWindow") {
+			if (option.query.hasOwnProperty('mdType') && option.query.mdType == "iframeWindow") {
 				this.globalData.isIframe = true;
 			} else {
 				this.globalData.isIframe = false;