leafiy
5/18/2018 - 6:46 PM

Vue router depth #vue

none

const toDepth = to.path.split('/').length
const fromDepth = from.path.split('/').length
this.transitionName = toDepth < fromDepth ? 'slideOutUp' : 'slideInDown'