From 9983590fdfb73c5bafead473bce663733d14f33f Mon Sep 17 00:00:00 2001 From: xingyu Date: Mon, 25 Jul 2022 12:55:02 +0800 Subject: [PATCH] feat: vue3 add sensms --- .../src/api/system/sms/smsTemplate/index.ts | 4 +- .../views/system/sms/smsTemplate/index.vue | 77 ++++++++++++++++--- 2 files changed, 68 insertions(+), 13 deletions(-) diff --git a/yudao-ui-admin-vue3/src/api/system/sms/smsTemplate/index.ts b/yudao-ui-admin-vue3/src/api/system/sms/smsTemplate/index.ts index b6dcc6a4a..26cc883c0 100644 --- a/yudao-ui-admin-vue3/src/api/system/sms/smsTemplate/index.ts +++ b/yudao-ui-admin-vue3/src/api/system/sms/smsTemplate/index.ts @@ -1,5 +1,5 @@ import { useAxios } from '@/hooks/web/useAxios' -import type { SmsTemplateVO, SmsSendVO } from './types' +import type { SmsTemplateVO } from './types' const request = useAxios() @@ -29,7 +29,7 @@ export const deleteSmsTemplateApi = (id: number) => { } // 发送短信 -export function sendSms(data: SmsSendVO) { +export const sendSmsApi = (data) => { return request.post({ url: '/system/sms-template/send-sms', data }) } diff --git a/yudao-ui-admin-vue3/src/views/system/sms/smsTemplate/index.vue b/yudao-ui-admin-vue3/src/views/system/sms/smsTemplate/index.vue index af54dd386..0c7438fcd 100644 --- a/yudao-ui-admin-vue3/src/views/system/sms/smsTemplate/index.vue +++ b/yudao-ui-admin-vue3/src/views/system/sms/smsTemplate/index.vue @@ -1,7 +1,7 @@