mirror of
https://github.com/un-pany/v3-admin-vite.git
synced 2025-04-21 11:29:20 +08:00
style: 统一 defineEmits API 用法
This commit is contained in:
parent
cc4919f576
commit
d77f7fafa9
@ -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])
|
||||
|
Loading…
x
Reference in New Issue
Block a user