fix: Fix the issue of license status refresh after import (#10934)

This commit is contained in:
ssongliu 2025-11-12 18:29:10 +08:00 committed by GitHub
parent ebbfed711c
commit 5b0fccd19a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View file

@ -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 {

View file

@ -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();