Commit 7c5b634b authored by 袁玲利's avatar 袁玲利

'游戏排行榜'

parent 63ad8660
...@@ -20,7 +20,12 @@ var gHost = "https://" + window.location.host; ...@@ -20,7 +20,12 @@ var gHost = "https://" + window.location.host;
if (window.location.protocol != "https:") { if (window.location.protocol != "https:") {
gHost = "https://uat-pay.xiaopay.net"; gHost = "https://uat-pay.xiaopay.net";
} }
window.postMessage() window.addEventListener('beforeunload', function(e) {
// 在此处添加需要执行的代码
// 例如:发送请求、保存数据等
// 注意:在有些浏览器上,这里不能弹出提示框,只能做些无感知操作
console.log('zzzzzzzzzzzzzzzzzzzzzzz')
});
export default { export default {
data() { data() {
return { return {
...@@ -229,7 +234,7 @@ export default { ...@@ -229,7 +234,7 @@ export default {
}); });
}, },
}, },
onbeforeunload() { beforeDestroy() {
console.log('111111111') console.log('111111111')
this.params.behavior = "viewPage"; this.params.behavior = "viewPage";
this.params.data = "closePage"; this.params.data = "closePage";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment