From d221be90b57216729c5d0659e0fc87b0d37f8cfa Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Thu, 28 Mar 2024 22:26:45 +0800 Subject: [PATCH] :lipstick: Optimized most of components for moblie --- src/components/NotificationList.vue | 13 ++++++------- src/components/publish/ArticleEditor.vue | 2 +- src/components/publish/CommentEditor.vue | 2 +- src/components/publish/MomentEditor.vue | 2 +- src/components/publish/PostTools.vue | 12 +++--------- src/components/realms/RealmDeletion.vue | 2 +- src/components/realms/RealmEditor.vue | 2 +- src/components/realms/RealmTools.vue | 10 +++++----- src/layouts/master.vue | 10 ++++------ 9 files changed, 23 insertions(+), 32 deletions(-) diff --git a/src/components/NotificationList.vue b/src/components/NotificationList.vue index 32119a1..b03051e 100644 --- a/src/components/NotificationList.vue +++ b/src/components/NotificationList.vue @@ -12,9 +12,8 @@ - You are done! There is no unread notifications for you. + You are done! There is no unread notifications for + you. @@ -55,10 +54,10 @@ async function readNotifications() { const res = await request( "identity", "/api/notifications?" + - new URLSearchParams({ - take: pagination.pageSize.toString(), - offset: ((pagination.page - 1) * pagination.pageSize).toString() - }), + new URLSearchParams({ + take: pagination.pageSize.toString(), + offset: ((pagination.page - 1) * pagination.pageSize).toString() + }), { headers: { Authorization: `Bearer ${await getAtk()}` } } diff --git a/src/components/publish/ArticleEditor.vue b/src/components/publish/ArticleEditor.vue index fffc585..ba59c44 100644 --- a/src/components/publish/ArticleEditor.vue +++ b/src/components/publish/ArticleEditor.vue @@ -1,5 +1,5 @@