1
我使用這個代碼:Intreceptor刷新表格後,提交頁面
https://www.illucit.com/blog/2016/03/angular2-http-authentication-interceptor/
問題是提交我的網頁refreshs人知道如何解決呢?
當我刪除intreceptor:
{
provide: Http,
useFactory: (xhrBackend: XHRBackend, requestOptions: RequestOptions, router: Router) => new HttpInterceptor(xhrBackend, requestOptions, router),
deps: [XHRBackend, RequestOptions, Router]
}
它正常工作......隨着intreceptor它沒有擊中API只是門柱內側intreceptor方法,做整理...
很可能是由您的表單標記引起的。你可以在你使用表格的地方張貼片段嗎? –
這不是...因爲當我刪除intreceptor時,它工作正常...... – Vladimir