askbot-dragon 1.5.93-beta → 1.5.96-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "askbot-dragon",
3
- "version": "1.5.93-beta",
3
+ "version": "1.5.96-beta",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -26,7 +26,7 @@
26
26
  class="grzh-iframe"
27
27
  :src="actionAlertIframe.template"
28
28
  width="100%"
29
- height="95%"
29
+ height="90%"
30
30
  :scrolling="actionAlertIframe.scrolling"
31
31
  frameborder="no"
32
32
  border="0"
@@ -87,6 +87,23 @@ export default {
87
87
  this.actionAlertIframe.template = this.actionAlertIframe.template + "&iframeId=" + this.tampId
88
88
  }
89
89
  this.actionAlertIframe.template = this.actionAlertIframe.template.split("&").join("&")
90
+
91
+ // 监听回退事件
92
+ let _that = this;
93
+
94
+ (function () {
95
+ console.log(95, 'addEventListener window.onpopstate');
96
+ if (window.history && window.history.pushState) {
97
+ console.log(97, 'window.history && window.history.pushState');
98
+ window.onpopstate = function (e) {
99
+ console.log(99, 'window.onpopstate innner', e);
100
+ window.history.go(1);
101
+ // window.history.pushState('forward', null, '');
102
+ // window.history.forward(1);
103
+ _that.showAskFullScreen = false;
104
+ };
105
+ }
106
+ })();
90
107
  },
91
108
  };
92
109
  </script>