优化pinia相关

This commit is contained in:
zhangtao
2025-01-10 19:37:56 +08:00
parent 1ae731eafe
commit 01c3cb1368
10 changed files with 71 additions and 53 deletions
+6 -1
View File
@@ -316,7 +316,12 @@ onMounted(() => {
}
.container {
background-size: 100% 100%;
height: 100vh;
background-size: cover;
background-position: center;
display: flex;
flex-direction: column;
justify-content: space-between;
.desc {
text-align: center;
@@ -206,6 +206,7 @@ const handleSave = async () => {
// 调用更新配置接口
await updateConfig(configData);
message.success('配置保存成功');
window.location.reload();
} catch (error) {
console.error('保存配置失败:', error);
message.error('配置保存失败');
-2
View File
@@ -361,8 +361,6 @@ import { getDeptList } from '@/api/system/dept'
import { getUserList, createUser, updateUser, deleteUser, batchAvailableUser, exportUser, downloadTemplate, importUser } from '@/api/system/user'
import SelectorModal from './SelectorModal.vue'
import type { searchDataType, tableDataType, deptTreeType, roleSelectorType, positionSelectorType } from './types'
import XLSX from 'xlsx';
import store from '@/store';
import storage from 'store';
const tableLoading = ref(false);