mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-24 16:00:53 +00:00
fix: allow licensed community restore progress route (#13913)
This commit is contained in:
@@ -30,7 +30,8 @@ const clearLoginStatus = () => {
|
||||
};
|
||||
|
||||
router.beforeEach(async (to, from) => {
|
||||
const { entrance, isEnterprise, isEnterpriseLicenseLoaded, isEnterpriseLicensed, isLogin } = useGlobalStore();
|
||||
const { entrance, isEnterprise, isEnterpriseLicenseLoaded, isEnterpriseLicensed, isLogin, isOnRestart } =
|
||||
useGlobalStore();
|
||||
NProgress.start();
|
||||
axiosCanceler.removeAllPending();
|
||||
|
||||
@@ -88,7 +89,7 @@ router.beforeEach(async (to, from) => {
|
||||
params: to.params,
|
||||
};
|
||||
}
|
||||
if (!isEnterprise.value || isEnterpriseLicensed.value) {
|
||||
if (!isEnterprise.value || (isEnterpriseLicensed.value && !isOnRestart.value)) {
|
||||
NProgress.done();
|
||||
return { name: 'home' };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user