修复【站内信】测试模板消息发送,接口调用错误问题
This commit is contained in:
parent
2ab8ea45da
commit
d3b5535df9
@ -44,7 +44,6 @@
|
|||||||
</Dialog>
|
</Dialog>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" name="SystemNotifyTemplateSendForm" setup>
|
<script lang="ts" name="SystemNotifyTemplateSendForm" setup>
|
||||||
import * as SmsTemplateApi from '@/api/system/sms/smsTemplate'
|
|
||||||
import * as UserApi from '@/api/system/user'
|
import * as UserApi from '@/api/system/user'
|
||||||
import * as NotifyTemplateApi from '@/api/system/notify/template'
|
import * as NotifyTemplateApi from '@/api/system/notify/template'
|
||||||
const message = useMessage() // 消息弹窗
|
const message = useMessage() // 消息弹窗
|
||||||
@ -102,8 +101,8 @@ const submitForm = async () => {
|
|||||||
// 提交请求
|
// 提交请求
|
||||||
formLoading.value = true
|
formLoading.value = true
|
||||||
try {
|
try {
|
||||||
const data = formData.value as unknown as SmsTemplateApi.SendSmsReqVO
|
const data = formData.value as unknown as NotifyTemplateApi.NotifySendReqVO
|
||||||
const logId = await SmsTemplateApi.sendSms(data)
|
const logId = await NotifyTemplateApi.sendNotify(data)
|
||||||
if (logId) {
|
if (logId) {
|
||||||
message.success('提交发送成功!发送结果,见发送日志编号:' + logId)
|
message.success('提交发送成功!发送结果,见发送日志编号:' + logId)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user