v2.6.6版本发布 (#1784)

* 前端支持顶部菜单栏模式

* 自动化代码单条获取方法不再需要取data.xxx直接取用data

* 自动化代码支持选择索引

* 自动化代码回滚支持自行选择是否删除菜单、API、表

* 日志增加定期清理功能

* 权限配置API部分,支持根据API真实path进行筛选

* 修复了一些已知bug

* 修复了一个sql注入漏洞

---------

Co-authored-by: xuedinge <781408517@qq.com>
Co-authored-by: Qing Liang <106448173+xue-ding-e@users.noreply.github.com>
Co-authored-by: wall-js <wall_js@foxmail.com>
Co-authored-by: Wall <307606056@qq.com>
Co-authored-by: leooza <leooza@163.com>
Co-authored-by: piexlMax(奇淼 <qimiaojiangjizhao@gmail.com>
Co-authored-by: hxl <52553624@qq.com>
Co-authored-by: zsc1003 <11476303+zsc1003@user.noreply.gitee.com>
This commit is contained in:
PiexlMax(奇淼
2024-06-16 00:27:40 +08:00
committed by GitHub
co-authored by xuedinge Qing Liang wall-js Wall leooza piexlMax(奇淼 hxl zsc1003
parent b336529d42
commit 03e5bc515f
34 changed files with 874 additions and 552 deletions
+8 -2
View File
@@ -6,7 +6,6 @@ import { setBodyPrimaryColor } from '@/utils/format'
export const useAppStore = defineStore('app', () => {
const theme = ref(localStorage.getItem('theme') || 'light')
const device = ref("")
const config = reactive({
weakness: false,
grey: false,
@@ -17,6 +16,8 @@ export const useAppStore = defineStore('app', () => {
layout_side_collapsed_width : 80,
layout_side_item_height : 48,
show_watermark: false,
side_mode : 'normal'
})
// 初始化配置
@@ -119,6 +120,10 @@ export const useAppStore = defineStore('app', () => {
config.show_watermark = e;
}
const toggleSideModel= (e) =>{
config.side_mode = e
}
if(config.darkMode === 'auto'){
toggleDarkModeAuto()
}
@@ -138,7 +143,8 @@ export const useAppStore = defineStore('app', () => {
toggleConfigSideWidth,
toggleConfigSideCollapsedWidth,
toggleConfigSideItemHeight,
toggleConfigWatermark
toggleConfigWatermark,
toggleSideModel
}
})