When the Vue component is switched, it drives the drawing effect, why does mine only go in one direction? I want to go in from right to left and back from left to right

App.vue

               <transition :name="transitionName"> 
                     <router-view class="Router"></router-view>
                </transition>
                

data () {
return {
transitionName: "slide-right" / / the default dynamic route changes to slide-right
}
},
watch: {
" $route" (to,) From) {
let isBack = this.$router.isBack / / whether the state is forward or backward when listening for route changes
if (isBack) {
this.transitionName = "slide-right"
} else {
this.transitionName =" slide-left"
}
this.$router.isBack = False
}
}

  <style>
  
  .Router {
   position: absolute;
    width: 100%;
   transition: all .8s ease;
    top: 40px;
  }

  .slide-left-enter,
.slide-right-leave-active {
    opacity: 0;
 -webkit-transform: translate(100%, 0);
   transform: translate(100%, 0);
 }

.slide-left-leave-active,
   .slide-right-enter {
 opacity: 0;
-webkit-transform: translate(-100%, 0);
transform: translate(-100% 0);
 }

< / style >

Mar.17,2021

boundless longevity Buddha, the specific problem is analyzed in detail. Have you solved your cross-domain 403 problem

?
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3c131-2c2d8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3c131-2c2d8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?