全局表格添加列配置功能

This commit is contained in:
guanj
2026-07-09 13:54:18 +08:00
parent 1a69be62a0
commit 855c569535
116 changed files with 1078 additions and 9806 deletions

View File

@@ -10,7 +10,6 @@ import { compact, isEmpty, reverse } from 'lodash-es'
import { getRouteMenu, dictDataCache } from '@/api/auth'
import { isAdminApp } from '@/utils/common'
import { adminBaseRoutePath } from '@/router/static'
const route:any = useRouter()
/**
* 导航失败有错误消息的路由push
* @param to — 导航位置,同 router.push
@@ -319,8 +318,9 @@ export const getMenu = () => {
}
handlerMenu(res.data)
handleAdminRoute(res.data)
if (route?.params.to) {
const lastRoute = JSON.parse(route.params.to as string)
const currentRoute = router.currentRoute.value
if (currentRoute?.params.to) {
const lastRoute = JSON.parse(currentRoute.params.to as string)
if (lastRoute.path != adminBaseRoutePath) {
let query = !isEmpty(lastRoute.query) ? lastRoute.query : {}
routePush({ path: lastRoute.path, query: query })