Skip to content

Commit

Permalink
Fix: order value
Browse files Browse the repository at this point in the history
  • Loading branch information
LazyCreeper committed Oct 31, 2023
1 parent 0aef308 commit 2ace6ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/components/RoomList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down Expand Up @@ -125,8 +125,7 @@ onMounted(() => {
placeholder="排序方式"
@change="getRoomList(false)"
>
<el-option label="房间名称" value="roomName" />
<el-option label="房间ID" value="roomId" />
<el-option label="房间名称" value="name" />
<el-option label="创建时间" value="createdAt" />
</el-select>
<button
Expand Down
6 changes: 3 additions & 3 deletions src/views/SearchPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const { state: roomList, execute: reqRoomList } = roomListApi();
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 search = ref("all");
const keyword = ref("");
Expand Down Expand Up @@ -85,9 +85,9 @@ const getRoomList = async (showMsg = 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"
>
<div class="overflow-hidden text-ellipsis m-auto sm:p-2 w-full max-sm:mt-2">
<el-tag disabled type="warning" class="text-sm absolute left-2" title="RoomID">
<!-- <el-tag disabled type="warning" class="text-sm absolute left-2" title="RoomID">
{{ item["roomId"] }}
</el-tag>
</el-tag> -->
<b class="text-base font-semibold truncate"> {{ item["roomName"] }}</b>
</div>
<div class="overflow-hidden text-ellipsis text-sm p-2">
Expand Down

0 comments on commit 2ace6ae

Please sign in to comment.