Home.vue 327 B

12345678910111213141516171819202122
  1. <template>
  2. <div class="home">
  3. <el-button >文字按钮</el-button>
  4. <div @click="skipPage">跳转about页面</div>
  5. </div>
  6. </template>
  7. <script>
  8. export default {
  9. name: 'Home',
  10. components: {
  11. },
  12. methods:{
  13. skipPage:function(){
  14. this.$router.push({ name: 'About'});
  15. }
  16. }
  17. }
  18. </script>