style: 统一 defineEmits API 用法
This commit is contained in:
@@ -2,7 +2,9 @@
|
||||
import { ref, watch } from "vue"
|
||||
import { useUserStore } from "@/store/modules/user"
|
||||
|
||||
const emit = defineEmits(["change"])
|
||||
const emit = defineEmits<{
|
||||
(e: "change"): void
|
||||
}>()
|
||||
|
||||
const userStore = useUserStore()
|
||||
const switchRoles = ref(userStore.roles[0])
|
||||
|
||||
Reference in New Issue
Block a user