This commit is contained in:
tcubic 2022-08-08 13:18:08 +08:00
parent d456880c91
commit 5648683c86

View File

@ -218,6 +218,7 @@ onBeforeMount(() => {
onMounted(() => { onMounted(() => {
fontAdpat() fontAdpat()
// stopBack() // stopBack()
goBackEvent()
}); });
// //
@ -326,6 +327,18 @@ const stopBack = ()=>{
}); });
} }
// 退
const goBackEvent = ()=>{
if (window.history && window.history.pushState) {
window.onpopstate = function() {
//退
console.log("后退");
}
}
}
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>