From 55af157390a17cbddf8f7b22b396d230936672d4 Mon Sep 17 00:00:00 2001 From: AuroraHuang22 Date: Fri, 20 Sep 2024 14:24:42 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Simplify=20post=20form?= =?UTF-8?q?at?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- store/book-api.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/store/book-api.ts b/store/book-api.ts index 302f7914..c898d535 100644 --- a/store/book-api.ts +++ b/store/book-api.ts @@ -36,9 +36,7 @@ export default class BookAPI extends VuexModule { try { const { data } = await axios.post( API_POST_AUTHORIZE, - { - ...signature, - }, + signature, ) const token = (data as any)?.token if (!token) { From 57d3ef7ba6f1da73bb5519203359a8b310113637 Mon Sep 17 00:00:00 2001 From: AuroraHuang22 Date: Fri, 20 Sep 2024 15:27:36 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=91=94=20Use=20session=20wallet=20to?= =?UTF-8?q?=20determine=20connected=20user?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/wallet.vue | 23 ++++++++++++++++++++--- locales/en.json | 1 + pages/auth/redirect.vue | 2 +- pages/nft/url/index.vue | 8 ++++++-- pages/view/_iscnId/index.vue | 7 ++++--- pages/works/index.vue | 14 ++++++++------ 6 files changed, 40 insertions(+), 15 deletions(-) diff --git a/layouts/wallet.vue b/layouts/wallet.vue index 54377b81..8773e5c4 100644 --- a/layouts/wallet.vue +++ b/layouts/wallet.vue @@ -1,12 +1,20 @@