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