协议调试
This commit is contained in:
@@ -25,9 +25,8 @@ export class ApiClient {
|
||||
let jsonData: any;
|
||||
|
||||
if (ep.needsAuth && this.token) {
|
||||
headers["Authorization"] = `Bearer ${this.token}`;
|
||||
headers["Authorization"] = `${this.token}`;
|
||||
}
|
||||
|
||||
// 编码
|
||||
if (ep.codec === "json") {
|
||||
jsonData = (ep.method === "GET") ? req : JsonCodec.encode(req);
|
||||
|
||||
Reference in New Issue
Block a user