you don't subscribe in your resolver, you return the observable and angular subscribes:(您没有在解析器中订阅,则返回可观察的和有角度的订阅:)
return forkJoin(getControllerList, getRoleAccessRole).pipe(map(res => {
return {
controllerList: res[0],
accessRoleList: res[1]
}
}))
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…