[Fix][UI] Fix the message toast issue (#16088)

This commit is contained in:
rockfang 2024-05-30 15:35:49 +08:00 committed by GitHub
parent ac1eacafe0
commit d8e0178599
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ export function useDetail(getFieldsValue: Function) {
try {
const res = await connectDataSource(formatParams())
window.$message.success(
res
res && res.msg
? res.msg
: `${t('datasource.test_connect')} ${t('datasource.success')}`
)

View File

@ -57,7 +57,7 @@ export function useDetail(getFormValues: Function) {
pluginInstanceParams: formatParams(json, values)
})
window.$message.success(
res
res && res.msg
? res.msg
: `${t('security.alarm_instance.test_send')} ${t('home.success')}`
)