开发过程中发现,通过类似一下:
checkAgent(routerObj: RouteRecordRaw): any {
console.log("checkAgent routerObj", routerObj);
const { to, from, next } = routerObj;
routerObj.next();
}
的方式来写,会有这个报错:
请问正确的写法如何呢
开发过程中发现,通过类似一下:
checkAgent(routerObj: RouteRecordRaw): any {
console.log("checkAgent routerObj", routerObj);
const { to, from, next } = routerObj;
routerObj.next();
}
的方式来写,会有这个报错:
请问正确的写法如何呢