diff --git a/agent/app/service/firewall.go b/agent/app/service/firewall.go index 76e0e637e..339a26e45 100644 --- a/agent/app/service/firewall.go +++ b/agent/app/service/firewall.go @@ -823,7 +823,7 @@ func loadInitStatus(clientName, tab string) (bool, bool) { if clientName == "firewalld" { return true, true } - if clientName == "ufw" && tab == "forward" { + if clientName == "ufw" && tab != "forward" { return true, true } switch tab { diff --git a/frontend/src/components/license-import/index.vue b/frontend/src/components/license-import/index.vue index ffa9e40ff..935853046 100644 --- a/frontend/src/components/license-import/index.vue +++ b/frontend/src/components/license-import/index.vue @@ -90,7 +90,7 @@ const acceptParams = (params: DialogProps) => { uploaderFiles.value = []; uploadRef.value?.clearFiles(); isImport.value = params?.isImport; - withoutReload.value = params?.withoutReload; + withoutReload.value = params?.withoutReload || false; open.value = true; }; @@ -142,6 +142,10 @@ const submit = async () => { uploaderFiles.value = []; open.value = false; MsgSuccess(i18n.global.t('commons.msg.operationSuccess')); + if (!isImport.value) { + globalStore.isProductPro = true; + globalStore.isMasterProductPro = true; + } if (!withoutReload.value) { loadMasterProductProFromDB(); loadProductProFromDB();