😎优化修改系统配置刷新逻辑

This commit is contained in:
zuohuaijun 2025-06-02 16:33:31 +08:00
parent 87b9dde5ec
commit b2dcbbc2ca
2 changed files with 3 additions and 7 deletions

View File

@ -166,9 +166,6 @@ onMounted(async () => {
// window.location.reload();
// }
//
if (themeConfig.value.captcha == undefined) window.location.reload();
//
state.secondVerEnabled = themeConfig.value.secondVer ?? false;
state.captchaEnabled = themeConfig.value.captcha ?? true;

View File

@ -193,7 +193,7 @@
import { nextTick, onMounted, reactive, ref } from 'vue';
import { ElMessage, ElMessageBox, UploadInstance } from 'element-plus';
import { fileToBase64 } from '/@/utils/base64Conver';
import { Local, Session } from '/@/utils/storage';
import { loadSysInfo } from '/@/utils/sysInfo';
import chineseColors from '/@/layout/navBars/topBar/colors.json';
import { getAPI } from '/@/utils/axios-utils';
@ -239,9 +239,8 @@ const saveSysInfo = async () => {
state.logoFile = undefined;
ElMessage.success('保存成功');
//
Local.clear();
Session.clear();
//
await loadSysInfo(state.sysInfo.tenantId);
} finally {
nextTick(() => {
state.isLoading = false;