mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-18 05:19:19 +08:00
fix: Fix the issue of license status refresh after import (#10934)
This commit is contained in:
parent
ebbfed711c
commit
5b0fccd19a
2 changed files with 6 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue