Browse Source

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

upstream-dev
rockfang 6 months ago committed by GitHub
parent
commit
d8e0178599
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      dolphinscheduler-ui/src/views/datasource/list/use-detail.ts
  2. 2
      dolphinscheduler-ui/src/views/security/alarm-instance-manage/use-detail.ts

2
dolphinscheduler-ui/src/views/datasource/list/use-detail.ts

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

2
dolphinscheduler-ui/src/views/security/alarm-instance-manage/use-detail.ts

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

Loading…
Cancel
Save