@@ -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: {
@@ -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 () {