1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Basic account page works

This commit is contained in:
Zhiyuan Zheng
2020-10-28 00:02:37 +01:00
parent 3f8e451099
commit a6e33d8b0a
17 changed files with 458 additions and 169 deletions

View File

@ -14,9 +14,7 @@ export async function client (url, query, { body, ...customConfig } = {}) {
}
const queryString = query
? `?${Object.keys(query)
.map(key => `${key}=${query[key]}`)
.join('&')}`
? `?${query.map(({ key, value }) => `${key}=${value}`).join('&')}`
: ''
if (body) {