|
@ -166,11 +166,7 @@ export default class ContactsView extends Vue { |
|
|
encodeURIComponent(identity.did) + |
|
|
encodeURIComponent(identity.did) + |
|
|
"&recipientDid=" + |
|
|
"&recipientDid=" + |
|
|
encodeURIComponent(contact.did); |
|
|
encodeURIComponent(contact.did); |
|
|
const token = await accessToken(identity); |
|
|
const headers = this.getHeaders(identity); |
|
|
const headers = { |
|
|
|
|
|
"Content-Type": "application/json", |
|
|
|
|
|
Authorization: "Bearer " + token, |
|
|
|
|
|
}; |
|
|
|
|
|
const resp = await this.axios.get(url, { headers }); |
|
|
const resp = await this.axios.get(url, { headers }); |
|
|
if (resp.status === 200) { |
|
|
if (resp.status === 200) { |
|
|
result = resp.data.data; |
|
|
result = resp.data.data; |
|
@ -191,11 +187,7 @@ export default class ContactsView extends Vue { |
|
|
encodeURIComponent(contact.did) + |
|
|
encodeURIComponent(contact.did) + |
|
|
"&recipientDid=" + |
|
|
"&recipientDid=" + |
|
|
encodeURIComponent(identity.did); |
|
|
encodeURIComponent(identity.did); |
|
|
const token2 = await accessToken(identity); |
|
|
const headers2 = await this.getHeaders(identity); |
|
|
const headers2 = { |
|
|
|
|
|
"Content-Type": "application/json", |
|
|
|
|
|
Authorization: "Bearer " + token2, |
|
|
|
|
|
}; |
|
|
|
|
|
const resp2 = await this.axios.get(url2, { headers: headers2 }); |
|
|
const resp2 = await this.axios.get(url2, { headers: headers2 }); |
|
|
if (resp2.status === 200) { |
|
|
if (resp2.status === 200) { |
|
|
result = R.concat(result, resp2.data.data); |
|
|
result = R.concat(result, resp2.data.data); |
|
|