askbot-dragon 1.5.95-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
|
@@ -95,15 +95,14 @@ export default {
|
|
|
95
95
|
console.log(95, 'addEventListener window.onpopstate');
|
|
96
96
|
if (window.history && window.history.pushState) {
|
|
97
97
|
console.log(97, 'window.history && window.history.pushState');
|
|
98
|
-
window.onpopstate = function () {
|
|
99
|
-
console.log(99, 'window.onpopstate innner');
|
|
100
|
-
window.history.
|
|
101
|
-
window.history.forward
|
|
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);
|
|
102
103
|
_that.showAskFullScreen = false;
|
|
103
104
|
};
|
|
104
105
|
}
|
|
105
|
-
window.history.pushState('forward', null, ''); //在IE中必须得有这两行
|
|
106
|
-
window.history.forward(1);
|
|
107
106
|
})();
|
|
108
107
|
},
|
|
109
108
|
};
|