mirror of https://github.com/halo-dev/halo-admin
perf: mute the start plugin request in setup page (#897)
#### What type of PR is this? /kind improvement #### What this PR does / why we need it: 隐藏在初始化页面启用插件时的错误提示,因为会重试三次,所以不需要提示。 ```release-note None ```pull/901/head v2.3.0
parent
edf51fbcfa
commit
6143f5f218
|
@ -44,10 +44,15 @@ const { mutate: pluginStartMutate } = useMutation({
|
||||||
|
|
||||||
pluginToUpdate.spec.enabled = true;
|
pluginToUpdate.spec.enabled = true;
|
||||||
|
|
||||||
return apiClient.extension.plugin.updatepluginHaloRunV1alpha1Plugin({
|
return apiClient.extension.plugin.updatepluginHaloRunV1alpha1Plugin(
|
||||||
name: plugin.metadata.name,
|
{
|
||||||
plugin: pluginToUpdate,
|
name: plugin.metadata.name,
|
||||||
});
|
plugin: pluginToUpdate,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
mute: true,
|
||||||
|
}
|
||||||
|
);
|
||||||
},
|
},
|
||||||
retry: 3,
|
retry: 3,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue