index.vue 797 B

1234567891011121314151617181920212223242526272829303132333435
  1. <template>
  2. <!-- 仓库信息 -->
  3. <div class="warehouse-info">
  4. <firstMenu :list="list"
  5. :value="'title'"
  6. @selectMenu="selectMenu" />
  7. <router-view />
  8. </div>
  9. </template>
  10. <script lang="ts">
  11. import { defineComponent } from 'vue';
  12. import firstMenu from '@/components/firstMenu/index.vue';
  13. import { handleRouterMenu } from '@/setup/router/index';
  14. import { initData } from '@/setup/methods/index';
  15. export default defineComponent({
  16. name: 'warehouse-info',
  17. components: {
  18. firstMenu,
  19. },
  20. setup() {
  21. const { list, selectMenu, getMenuList } = handleRouterMenu();
  22. initData(() => {
  23. getMenuList();
  24. });
  25. return { list, selectMenu };
  26. },
  27. });
  28. </script>
  29. <style lang="less">
  30. .warehouse-info {
  31. }
  32. </style>;