emit类型

This commit is contained in:
xiangheng
2024-04-29 14:25:35 +08:00
parent 29bf102d7c
commit fdb86d9318
2 changed files with 5 additions and 2 deletions

View File

@@ -50,7 +50,7 @@
![](./docs/assets/flow.png)
# QQ群<a target="_blank" href="https://qm.qq.com/cgi-bin/qm/qr?k=3owvxQhAsj6oJ6_aJKuARd-GK6dDbMdu&jump_from=webapi&authKey=c989fefqSydvK0yM5uw+y5UIPy1WfMR/OlLPnubNW9ixVp9lKsTXXth07K7zOYOH">点击链接或扫码加入(目前没人)</a>
## QQ群<a target="_blank" href="https://qm.qq.com/cgi-bin/qm/qr?k=3owvxQhAsj6oJ6_aJKuARd-GK6dDbMdu&jump_from=webapi&authKey=c989fefqSydvK0yM5uw+y5UIPy1WfMR/OlLPnubNW9ixVp9lKsTXXth07K7zOYOH">点击链接或扫码加入</a>
<img border="0" src="./docs/assets/group.jpg" height="400px" alt="group" title="group">

View File

@@ -44,7 +44,10 @@ import { setSmsConfig, smsDetail } from '@/api/message'
import type { FormInstance } from 'element-plus'
import Popup from '@/components/popup/index.vue'
import feedback from '@/utils/feedback'
const emit = defineEmits(['success'])
// 基于类型
const emit = defineEmits<{
(e: 'success'): void
}>()
const formRef = shallowRef<FormInstance>()
const popupRef = shallowRef<InstanceType<typeof Popup>>()
const formData = reactive({