更新
This commit is contained in:
@@ -333,6 +333,7 @@ const goBackEvent = ()=>{
|
|||||||
window.onpopstate = function() {
|
window.onpopstate = function() {
|
||||||
//后退按钮触发事件
|
//后退按钮触发事件
|
||||||
console.log("后退");
|
console.log("后退");
|
||||||
|
window.history.go(-1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user