edit.vue 740 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: `/p/${this.$route.params.id}`,
  30. title: "添加作品详情"
  31. }
  32. ]
  33. };
  34. },
  35. computed: {},
  36. mounted() {},
  37. methods: {}
  38. };
  39. </script>
  40. <style>
  41. </style>