mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-22 08:00:53 +00:00
fix: bypass cached route in user info navigation (#13462)
* fix: bypass cached route in user info navigation * fix: avoid caching entrance route
This commit is contained in:
@@ -387,7 +387,6 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed, reactive, ref } from 'vue';
|
||||
import { useRouter } from 'vue-router';
|
||||
import { ElMessageBox, FormInstance } from 'element-plus';
|
||||
import { Check, Close, QuestionFilled } from '@element-plus/icons-vue';
|
||||
import DrawerPro from '@/components/drawer-pro/index.vue';
|
||||
@@ -408,9 +407,11 @@ import {
|
||||
import { Setting } from '@/api/interface/setting';
|
||||
import { getSettingBaseInfo, getSettingInfo, updateSetting } from '@/api/modules/setting';
|
||||
import i18n from '@/lang';
|
||||
import router from '@/routers';
|
||||
import { useGlobalStore } from '@/composables/useGlobalStore';
|
||||
import { base64UrlToBuffer, bufferToBase64Url } from '@/utils/auth';
|
||||
import { MsgError, MsgSuccess } from '@/utils/message';
|
||||
import { routerToNameWithQuery } from '@/utils/router';
|
||||
import { checkNumberRange, Rules } from '@/global/form-rules';
|
||||
import { checkCidr, checkCidrV6, checkIpV4V6 } from '@/utils/validate';
|
||||
|
||||
@@ -419,7 +420,6 @@ const emit = defineEmits<{ (e: 'search'): void }>();
|
||||
|
||||
const complexityVerification = ref(false);
|
||||
const { globalStore, docsUrl, entrance, isFxplay } = useGlobalStore();
|
||||
const router = useRouter();
|
||||
const open = ref(false);
|
||||
const loading = ref(false);
|
||||
const userRef = ref<FormInstance>();
|
||||
@@ -700,7 +700,7 @@ const handlePasskeyConfigureDomain = () => {
|
||||
passkeyPrereqDialogOpen.value = false;
|
||||
passkeyDialogOpen.value = false;
|
||||
open.value = false;
|
||||
router.push({ name: 'Safe' });
|
||||
routerToNameWithQuery('Safe', { uncached: 'true' });
|
||||
};
|
||||
|
||||
const handlePasskeyPrereqDialogClose = () => {
|
||||
|
||||
Reference in New Issue
Block a user