Pre Merge pull request !142 from babylazsss/master

pull/142/MERGE
babylazsss 2023-04-27 06:09:42 +00:00 committed by Gitee
commit 22bec2bc3f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 5 additions and 36 deletions

View File

@ -1,31 +0,0 @@
# 生产环境
NODE_ENV=production
VITE_DEV=false
# 请求路径
VITE_BASE_URL='http://localhost:48080'
# 上传路径
VITE_UPLOAD_URL='http://localhost:48080/admin-api/infra/file/upload'
# 接口前缀
VITE_API_BASEPATH=
# 接口地址
VITE_API_URL=/admin-api
# 是否删除debugger
VITE_DROP_DEBUGGER=true
# 是否删除console.log
VITE_DROP_CONSOLE=true
# 是否sourcemap
VITE_SOURCEMAP=false
# 打包路径
VITE_BASE_PATH=/
# 输出路径
VITE_OUT_DIR=dist-pro

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)
}

View File

@ -70,7 +70,8 @@ const formData = ref({
remark: '',
apiKey: '',
apiSecret: '',
callbackUrl: ''
callbackUrl: '',
createTime: null
})
const formRules = reactive({
signature: [{ required: true, message: '短信签名不能为空', trigger: 'blur' }],
@ -109,7 +110,7 @@ const submitForm = async () => {
//
formLoading.value = true
try {
const data = unref(formRef)?.formModel as SmsChannelApi.SmsChannelVO
const data = unref(formData) as unknown as SmsChannelApi.SmsChannelVO
if (formType.value === 'create') {
await SmsChannelApi.createSmsChannel(data)
message.success(t('common.createSuccess'))