❗❗❗vue里使用ts注意加setup
<script lang="ts" setup>
import { ref } from "vue";
const dialogVisible = ref(false);
const activeIndex = ref("1");
const activeIndex2 = ref("1");
const handleSelect = (key: string, keyPath: string[]) => {
console.log(key, keyPath);
};
</script>