mounted() {
//禁止浏览器的后退操作
history.pushState(null, null, document.URL);
window.addEventListener('popstate', function () {
history.pushState(null, null, document.URL);
});
},
js禁止浏览器后退操作
最新推荐文章于 2025-04-29 08:30:00 发布
mounted() {
//禁止浏览器的后退操作
history.pushState(null, null, document.URL);
window.addEventListener('popstate', function () {
history.pushState(null, null, document.URL);
});
},