setup() {
const d = ref(true);
return {
d
}
},
methods: {
goToAbout() {
this.d = false;
this.$router.push('/about')
},
},
beforeRouteLeave() {
console.log(this.d)
}
setup() {
const d = ref(true);
return {
d
}
},
methods: {
goToAbout() {
this.d = false;
this.$router.push('/about')
},
},
beforeRouteLeave() {
console.log(this.d)
}