mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-03-14 01:34:47 +08:00
fix: 解决安全入口跳转失败的问题 (#995)
This commit is contained in:
parent
a1c0408aae
commit
d5bff6473e
@ -139,7 +139,6 @@ const onUpgrade = async () => {
|
|||||||
type: 'info',
|
type: 'info',
|
||||||
}).then(async () => {
|
}).then(async () => {
|
||||||
globalStore.isLoading = true;
|
globalStore.isLoading = true;
|
||||||
globalStore.setLogStatus(false);
|
|
||||||
await upgrade(upgradeVersion.value);
|
await upgrade(upgradeVersion.value);
|
||||||
drawerVisiable.value = false;
|
drawerVisiable.value = false;
|
||||||
MsgSuccess(i18n.global.t('commons.msg.operationSuccess'));
|
MsgSuccess(i18n.global.t('commons.msg.operationSuccess'));
|
||||||
|
@ -15,6 +15,7 @@ router.beforeEach((to, from, next) => {
|
|||||||
|
|
||||||
if (to.name === 'entrance' && globalStore.isLogin) {
|
if (to.name === 'entrance' && globalStore.isLogin) {
|
||||||
if (to.params.code === globalStore.entrance) {
|
if (to.params.code === globalStore.entrance) {
|
||||||
|
globalStore.setLogStatus(false);
|
||||||
next({
|
next({
|
||||||
name: 'entrance',
|
name: 'entrance',
|
||||||
params: { code: globalStore.entrance },
|
params: { code: globalStore.entrance },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user