activated () {
this.$refs.scroll.scroll.scrollTo(0,this.leavetop,0)
this.$refs.scroll.scroll.refresh
},
deactivated () {
this.leavetop = this.$refs.scroll.getScrollY()
},
如图上面是进入到此路由则会调用该方法,而下面的函数则是在离开该所在的路由时调用的方法函数
activated () {
this.$refs.scroll.scroll.scrollTo(0,this.leavetop,0)
this.$refs.scroll.scroll.refresh
},
deactivated () {
this.leavetop = this.$refs.scroll.getScrollY()
},
如图上面是进入到此路由则会调用该方法,而下面的函数则是在离开该所在的路由时调用的方法函数