From ff9081cccc4acec781ad58ae7768fb6d22186e60 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Wed, 1 Mar 2023 12:08:18 +0800 Subject: [PATCH] perf: mute the start plugin request in setup page (halo-dev/console#897) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### What type of PR is this? /kind improvement #### What this PR does / why we need it: 隐藏在初始化页面启用插件时的错误提示,因为会重试三次,所以不需要提示。 ```release-note None ``` --- src/views/system/Setup.vue | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/views/system/Setup.vue b/src/views/system/Setup.vue index 0e3584eb85..1f7b4d04cc 100644 --- a/src/views/system/Setup.vue +++ b/src/views/system/Setup.vue @@ -44,10 +44,15 @@ const { mutate: pluginStartMutate } = useMutation({ pluginToUpdate.spec.enabled = true; - return apiClient.extension.plugin.updatepluginHaloRunV1alpha1Plugin({ - name: plugin.metadata.name, - plugin: pluginToUpdate, - }); + return apiClient.extension.plugin.updatepluginHaloRunV1alpha1Plugin( + { + name: plugin.metadata.name, + plugin: pluginToUpdate, + }, + { + mute: true, + } + ); }, retry: 3, });