!145 修复【站内信】测试模板消息发送,接口调用错误问题

Merge pull request !145 from ZanGe丶/master
This commit is contained in:
芋道源码 2023-05-05 10:54:50 +00:00 committed by Gitee
commit 7a64bbdea0
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -44,7 +44,6 @@
</Dialog>
</template>
<script lang="ts" name="SystemNotifyTemplateSendForm" setup>
import * as SmsTemplateApi from '@/api/system/sms/smsTemplate'
import * as UserApi from '@/api/system/user'
import * as NotifyTemplateApi from '@/api/system/notify/template'
const message = useMessage() //
@ -102,8 +101,8 @@ const submitForm = async () => {
//
formLoading.value = true
try {
const data = formData.value as unknown as SmsTemplateApi.SendSmsReqVO
const logId = await SmsTemplateApi.sendSms(data)
const data = formData.value as unknown as NotifyTemplateApi.NotifySendReqVO
const logId = await NotifyTemplateApi.sendNotify(data)
if (logId) {
message.success('提交发送成功!发送结果,见发送日志编号:' + logId)
}