fix: 优化系统默认配置。

This commit is contained in:
liangqing xia 2024-10-12 22:30:49 +08:00
parent ebb884fc19
commit 37668976bb
4 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,7 @@ setupVbenVxeTable({
showOverflow: true,
pagerConfig: {
// 默认条数
pageSize: 10,
pageSize: 20,
// 分页可选条数
pageSizes: [10, 20, 30, 40, 50],
},
@ -53,7 +53,7 @@ setupVbenVxeTable({
// 圆角按钮
round: true,
// 表格尺寸
size: 'medium',
size: 'mini',
customConfig: {
// 表格右上角自定义列配置 是否保存到localStorage
// 必须存在id参数才能使用

View File

@ -39,5 +39,6 @@ export const overridesPreferences = defineOverridesPreferences({
* sidebar
*/
semiDarkSidebar: false,
radius: '0.25',
},
});

View File

@ -193,7 +193,6 @@ async function generateAccess(options: GenerateMenuAndRoutesOptions) {
const vbenMenuList = backMenuToVbenMenu(backMenuList);
// 特别注意 这里要深拷贝
const menuList = [...cloneDeep(localMenuList), ...vbenMenuList];
console.log('menuList', menuList);
return menuList;
},
// 可以指定没有权限跳转403页面

View File

@ -243,7 +243,7 @@ const defaultPreferences: Preferences = {
colorSuccess: 'hsl(144 57% 58%)',
colorWarning: 'hsl(42 84% 61%)',
mode: 'dark',
radius: '0.5',
radius: '0.25',
semiDarkHeader: false,
semiDarkSidebar: true,
},