Blame view

apps/pages/userpage/author-mine.vue 355 Bytes
yyq authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
<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();
  },
  components: {
    Author
  }
yyq authored
20
};
yyq authored
21
</script>