create.vue 824 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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/works/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: "/credit/pages",
  26. title: "技术信用"
  27. },
  28. {
  29. url: "/credit/project",
  30. title: "项目经验"
  31. },
  32. {
  33. url: "/works/create",
  34. title: "添加项目作品"
  35. }
  36. ]
  37. };
  38. },
  39. computed: {},
  40. mounted() {},
  41. methods: {}
  42. };
  43. </script>
  44. <style>
  45. </style>