From 2ace6ae532d38e4a45d6fdd60317f8a10dba3aa9 Mon Sep 17 00:00:00 2001 From: Lazy <2211717435@qq.com> Date: Tue, 31 Oct 2023 23:59:58 +0800 Subject: [PATCH] Fix: order value --- src/components/RoomList.vue | 5 ++--- src/views/SearchPage.vue | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/components/RoomList.vue b/src/components/RoomList.vue index c5f5bcf..79ebf28 100644 --- a/src/components/RoomList.vue +++ b/src/components/RoomList.vue @@ -32,7 +32,7 @@ const { state: myRoomList_, execute: reqMyRoomList } = myRoomList(); const totalItems = ref(0); const currentPage = ref(1); const pageSize = ref(10); -const order = ref("roomId"); +const order = ref("name"); const sort = ref("desc"); const getRoomList = async (showMsg = false) => { @@ -125,8 +125,7 @@ onMounted(() => { placeholder="排序方式" @change="getRoomList(false)" > - - + { class="flex flex-wrap m-2 rounded-lg bg-zinc-50 hover:bg-zinc-100 transition-all dark:bg-zinc-800 hover:dark:bg-neutral-800 max-w-[225px] max-sm:max-w-full justify-center relative" > - + {{ item["roomName"] }}