mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-18 21:38:57 +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" {
|
if clientName == "firewalld" {
|
||||||
return true, true
|
return true, true
|
||||||
}
|
}
|
||||||
if clientName == "ufw" && tab == "forward" {
|
if clientName == "ufw" && tab != "forward" {
|
||||||
return true, true
|
return true, true
|
||||||
}
|
}
|
||||||
switch tab {
|
switch tab {
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,7 @@ const acceptParams = (params: DialogProps) => {
|
||||||
uploaderFiles.value = [];
|
uploaderFiles.value = [];
|
||||||
uploadRef.value?.clearFiles();
|
uploadRef.value?.clearFiles();
|
||||||
isImport.value = params?.isImport;
|
isImport.value = params?.isImport;
|
||||||
withoutReload.value = params?.withoutReload;
|
withoutReload.value = params?.withoutReload || false;
|
||||||
|
|
||||||
open.value = true;
|
open.value = true;
|
||||||
};
|
};
|
||||||
|
|
@ -142,6 +142,10 @@ const submit = async () => {
|
||||||
uploaderFiles.value = [];
|
uploaderFiles.value = [];
|
||||||
open.value = false;
|
open.value = false;
|
||||||
MsgSuccess(i18n.global.t('commons.msg.operationSuccess'));
|
MsgSuccess(i18n.global.t('commons.msg.operationSuccess'));
|
||||||
|
if (!isImport.value) {
|
||||||
|
globalStore.isProductPro = true;
|
||||||
|
globalStore.isMasterProductPro = true;
|
||||||
|
}
|
||||||
if (!withoutReload.value) {
|
if (!withoutReload.value) {
|
||||||
loadMasterProductProFromDB();
|
loadMasterProductProFromDB();
|
||||||
loadProductProFromDB();
|
loadProductProFromDB();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue