create.vue 722 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <div>
  3. <edit :locations="locations"></edit>
  4. </div>
  5. </template>
  6. <script>
  7. import { mapState } from "vuex";
  8. import edit from "@/components/topics/edit";
  9. import qs from "qs";
  10. export default {
  11. // async asyncData({ $axios, params }) {
  12. // let res = await $axios.$get(`/api/vip/getList`)
  13. // console.log('init', res)
  14. // },
  15. head: {
  16. title: "发布文章-技术圈"
  17. },
  18. components: {
  19. edit
  20. },
  21. data() {
  22. return {
  23. locations: [
  24. {
  25. url: "/",
  26. title: "技术圈"
  27. },
  28. {
  29. url: "/topics/create",
  30. title: "发布文章"
  31. }
  32. ]
  33. };
  34. },
  35. computed: {},
  36. mounted() {},
  37. methods: {}
  38. };
  39. </script>
  40. <style>
  41. </style>