瀏覽代碼

Merge branch 'dev/v1.2.16_wmh' of jianyu/jy-docs into feature/v1.2.16

wenmenghao 10 月之前
父節點
當前提交
22ccd1a848
共有 2 個文件被更改,包括 2 次插入7 次删除
  1. 0 3
      jydocs-pc/src/App.vue
  2. 2 4
      jydocs-pc/src/views/Home.vue

+ 0 - 3
jydocs-pc/src/App.vue

@@ -42,9 +42,6 @@ export default {
     this.getMemberInfo()
     if (window.goTemplateData && window.goTemplateData.inIframe) { // 在工作台内
       this.inIframe = true
-      window.$inIframe = true
-    } else {
-      window.$inIframe = false
     }
   },
   methods: {

+ 2 - 4
jydocs-pc/src/views/Home.vue

@@ -187,10 +187,8 @@ export default {
   created () {
     this.pageData = recoveryPageData('jy-docs-home-page-pc')
     this.getHome()
-  },
-  beforeMount () {
-    if (window.$in_Iframe) {
-      this.in_Iframe = window.$in_Iframe
+    if (window.goTemplateData && window.goTemplateData.inIframe) {
+      this.in_Iframe = true
     }
   },
   mounted () {