Authored by 李奇

Merge branch 'feature/tracking' into feature/context-and-tracking

@@ -41,12 +41,21 @@ export default { @@ -41,12 +41,21 @@ export default {
41 } 41 }
42 } 42 }
43 }; 43 };
44 - window.yohoInterface = window.yohoInterface; 44 +
  45 + const setInterface = () => {
  46 + window.frames['iframe'].yohoInterface = window.yohoInterface;
  47 + window.frames['iframe'].appBaseLogs = window.appBaseLogs;
  48 + };
  49 +
45 this.$bus.$on('after-view-enter', () => { 50 this.$bus.$on('after-view-enter', () => {
46 this.showIframe = true; 51 this.showIframe = true;
  52 + this.$nextTick(() => setInterface());
  53 +
47 }); 54 });
48 if (this.yoho.env.fs) { 55 if (this.yoho.env.fs) {
49 this.showIframe = true; 56 this.showIframe = true;
  57 + this.$nextTick(() => setInterface());
  58 +
50 } 59 }
51 }, 60 },
52 computed: { 61 computed: {