edit.vue 1009 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <template>
  2. <div>
  3. <breadcrumb :locations="locations"></breadcrumb>
  4. <editor-aside></editor-aside>
  5. <editor></editor>
  6. </div>
  7. </template>
  8. <script>
  9. import { mapState } from 'vuex'
  10. import breadcrumb from '@/components/breadcrumb'
  11. import editorAside from '@/components/topics/editor-aside'
  12. import editor from '@/components/topics/editor'
  13. // import getDeviceType from '@/mixins/getDeviceType'
  14. import qs from 'qs';
  15. export default {
  16. props: ['locations'],
  17. head: {
  18. title: '发布文章-技术圈',
  19. },
  20. components: {
  21. breadcrumb,
  22. editor,
  23. editorAside,
  24. },
  25. // mixins: [getDeviceType],
  26. data() {
  27. return {
  28. }
  29. },
  30. mounted() {
  31. // this.getList()
  32. },
  33. methods: {
  34. async getList() {
  35. let extraHeaders = {};
  36. if (this.deviceType === 'ios') {
  37. extraHeaders = this.getSign();
  38. }
  39. let res = await this.$axios.$post(`/api/vip/getList`, extraHeaders)
  40. if (res) {
  41. this.vipList = res.data
  42. }
  43. }
  44. }
  45. }
  46. </script>
  47. <style>
  48. </style>