index.vue 866 B

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