Browse Source

[Fix#9923] The alarm instance management interface is always in the loading state (#9924)

* fix alert plugin loading bug

* update use-form.ts

* remove unused package

* Update use-form.ts

* Update use-form.ts
3.1.0-release
Mr.An 3 years ago committed by GitHub
parent
commit
c5c68a8893
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      dolphinscheduler-ui/src/views/security/alarm-instance-manage/use-form.ts

4
dolphinscheduler-ui/src/views/security/alarm-instance-manage/use-form.ts

@ -72,12 +72,16 @@ export function useForm() {
const getUiPluginsByType = async () => {
if (state.pluginsLoading) return
state.pluginsLoading = true
try {
const plugins = await queryUiPluginsByType({ pluginType: 'ALERT' })
state.uiPlugins = plugins.map((plugin: IPlugin) => ({
label: plugin.pluginName,
value: plugin.id
}))
state.pluginsLoading = false
} catch (e) {
state.pluginsLoading = false
}
}
const changePlugin = async (pluginId: IPluginId) => {

Loading…
Cancel
Save