index.vue 498 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <template>
  2. <div>
  3. <h2>News Index page123</h2>
  4. <ul>
  5. <!-- vue中简单方式实现路由 -->
  6. <li><nuxt-link to="/news">NEWS</nuxt-link></li>
  7. </ul>
  8. </div>
  9. </template>
  10. <script>
  11. export default {
  12. name: 'news',
  13. components: {
  14. },
  15. props: {
  16. },
  17. data() {
  18. return {
  19. };
  20. },
  21. computed: {},
  22. methods: {
  23. },
  24. created() {
  25. },
  26. mounted() {
  27. },
  28. beforeDestroy() {
  29. },
  30. };
  31. </script>
  32. <style>
  33. </style>