src/views/HomePage.vue
@@ -5,6 +5,7 @@ <!-- <router-view> --> <ClueLayout v-show="menuIndex == 0"></ClueLayout> <GridLayout v-show="menuIndex == 1"></GridLayout> <InternalClueLayout v-show="menuIndex == 2"></InternalClueLayout> <!-- </router-view> --> </div> </template> @@ -14,6 +15,7 @@ import GridLayout from '@/views/overlay-grid/GridLayout.vue'; import ClueLayout from '@/views/overlay-clue/ClueLayout.vue'; import InternalClueLayout from '@/views/internal-clue/InternalClueLayout.vue'; // 餐单索引 const menuIndex = ref(0);