联调 辽宁台账维护 页面 修改 冀北 bug
This commit is contained in:
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user