author-mine.vue
450 Bytes
<template>
<Author ref="author"></Author>
</template>
<script>
import Author from './components/author';
export default {
name: 'authorMine',
activated() {
this.$refs.author.init(this.$route.params);
},
beforeRouteUpdate(to, from, next) {
this.$refs.author.init(to.params);
next();
},
methods: {
pageVisibileEvent() {
this.$refs.author.fetchBaseInfo(true);
}
},
components: {
Author
}
};
</script>