This commit is contained in:
Zyronon
2025-11-17 23:18:09 +08:00
parent 15240dc501
commit 697db5f975
3 changed files with 154 additions and 24 deletions

View File

@@ -77,10 +77,10 @@ async function init() {
onMounted(init)
let transitionName = $ref('go')
const route = useRoute()
watch(() => route.path, (to, from) => {
return transitionName = ''
// let transitionName = $ref('go')
// const route = useRoute()
// watch(() => route.path, (to, from) => {
// return transitionName = ''
// console.log('watch', to, from)
// //footer下面的5个按钮对跳不要用动画
// let noAnimation = [
@@ -97,7 +97,7 @@ watch(() => route.path, (to, from) => {
// const fromDepth = routes.findIndex(v => v.path === from)
// transitionName = toDepth > fromDepth ? 'go' : 'back'
// console.log('transitionName', transitionName, toDepth, fromDepth)
})
// })
</script>
<template>