mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-10-30 22:38:08 +08:00
fix: Fix the issue of license status refresh after import (#10934)
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user