更新时间:2023-11-21 16:22:52
我认为您缺少提供商中的括号,例如
I think you are missing a bracket in your providers, like below
providers: [
[ { provide: HTTP_INTERCEPTORS, useClass: SimpleInterceptor, multi: true }, ]
]
如果上述方法不起作用,您可以查看如何在 Angular HttpClient指南
If the above does not work, you can review how to setup an interceptor in the Angular HttpClient Guide