联调 辽宁台账维护 页面 修改 冀北 bug

This commit is contained in:
GGJ
2024-08-15 20:31:02 +08:00
parent fd5458105e
commit 9e1bbe8dc3
23 changed files with 794 additions and 39 deletions

View File

@@ -15,6 +15,7 @@ import { log } from 'console'
* @param to — 导航位置,同 router.push
*/
export const routePush = async (to: RouteLocationRaw) => {
console.log("🚀 ~ routePush ~ to:", to)
try {
const failure = await router.push(to)
if (isNavigationFailure(failure, NavigationFailureType.aborted)) {
@@ -48,6 +49,8 @@ export const getFirstRoute = (routes: RouteRecordRaw[], menuType = 'tab'): false
})
let find: boolean | RouteRecordRaw = false
for (const key in routes) {
console.log(`11111111`,routes[key].path);
if (
routes[key].meta?.type == 'menu' &&
routes[key].meta?.menu_type == menuType &&