QYF-GitLab1
2025-03-03 f5eb93a15ff74eeb8b6b307e3a38b95319c084e1
src/layout/Header.vue
@@ -19,12 +19,14 @@
</template>
<script setup lang="ts">
import { ref } from "vue";
import { ref, defineEmits } from "vue";
const activeIndex = ref("/");
const emit = defineEmits(["selectMenu"]);
const handleSelect = (key: string) => {
  console.log(key);
  activeIndex.value = key;
  emit("selectMenu", key);
};
</script>