Template
1
0
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:
pany 2022-08-25 13:23:24 +08:00
parent cc4919f576
commit d77f7fafa9

View File

@ -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])