Skip to content

Commit 7a64bbd

Browse files
YunaiVgitee-org
authored andcommitted
!145 修复【站内信】测试模板消息发送,接口调用错误问题
Merge pull request !145 from ZanGe丶/master
2 parents 2ab8ea4 + d3b5535 commit 7a64bbd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/views/system/notify/template/NotifyTemplateSendForm.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
</Dialog>
4545
</template>
4646
<script lang="ts" name="SystemNotifyTemplateSendForm" setup>
47-
import * as SmsTemplateApi from '@/api/system/sms/smsTemplate'
4847
import * as UserApi from '@/api/system/user'
4948
import * as NotifyTemplateApi from '@/api/system/notify/template'
5049
const message = useMessage() // 消息弹窗
@@ -102,8 +101,8 @@ const submitForm = async () => {
102101
// 提交请求
103102
formLoading.value = true
104103
try {
105-
const data = formData.value as unknown as SmsTemplateApi.SendSmsReqVO
106-
const logId = await SmsTemplateApi.sendSms(data)
104+
const data = formData.value as unknown as NotifyTemplateApi.NotifySendReqVO
105+
const logId = await NotifyTemplateApi.sendNotify(data)
107106
if (logId) {
108107
message.success('提交发送成功!发送结果,见发送日志编号:' + logId)
109108
}

0 commit comments

Comments
 (0)