index.vue 901 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <template>
  2. <div id="index">
  3. <admin-frame @search="search" :limit="limit" :total="total" :useNav="false">
  4. <template v-slot:info> 专利导航</template>
  5. </admin-frame>
  6. </div>
  7. </template>
  8. <script>
  9. import adminFrame from '@frame/src/components/mobile-frame/mobile-main.vue';
  10. import { mapState, createNamespacedHelpers } from 'vuex';
  11. export default {
  12. name: 'index',
  13. props: {},
  14. components: {
  15. adminFrame,
  16. },
  17. data: function () {
  18. return {
  19. limit: 5,
  20. total: 0,
  21. };
  22. },
  23. async created() {
  24. await this.search();
  25. },
  26. methods: {
  27. async search({ skip = 0, limit = 10, ...info } = {}) {},
  28. },
  29. computed: {
  30. ...mapState(['user']),
  31. },
  32. metaInfo() {
  33. return { title: this.$route.meta.title };
  34. },
  35. watch: {
  36. test: {
  37. deep: true,
  38. immediate: true,
  39. handler(val) {},
  40. },
  41. },
  42. };
  43. </script>
  44. <style lang="less" scoped></style>