QYF-GitLab1
2025-03-03 f2b450b76a1b161728c6008de07671f14631b34d
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>