fix:短信渠道新增失败

pull/140/head
babylazsss 2023-04-26 10:50:46 +08:00
parent 2ab8ea45da
commit 3c1717263a
2 changed files with 5 additions and 4 deletions

View File

@ -4,10 +4,10 @@ NODE_ENV=production
VITE_DEV=false
# 请求路径
VITE_BASE_URL='http://localhost:48080'
VITE_BASE_URL='http://172.26.6.130:8888'
# 上传路径
VITE_UPLOAD_URL='http://localhost:48080/admin-api/infra/file/upload'
VITE_UPLOAD_URL='http://172.26.6.130:8888/admin-api/infra/file/upload'
# 接口前缀
VITE_API_BASEPATH=

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