返回时关闭弹窗而不是直接退出页面

分两种情况: a56爆大奖在线娱乐是直接进入到该页面,通过监听popstate事件来判断返回操作 1、在触发弹窗弹出的方法里加上:window.history.pushState(null, null, "#"); methods:{ addPopState () { if (this.typeVisible) {
posted @ 2022-04-26 14:21  chicidol  阅读(178)  评论(0编辑  收藏  举报