Skip to content

Commit

Permalink
Fix: createAt time
Browse files Browse the repository at this point in the history
  • Loading branch information
LazyCreeper committed Oct 16, 2023
1 parent d0ba895 commit e277d4d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ declare module 'vue' {
CustomHeaders: typeof import('./src/components/dialogs/customHeaders.vue')['default']
DarkModeSwitcher: typeof import('./src/components/DarkModeSwitcher.vue')['default']
Edit: typeof import('./src/components/icons/Edit.vue')['default']
ElButton: typeof import('element-plus/es')['ElButton']
ElCol: typeof import('element-plus/es')['ElCol']
ElCollapse: typeof import('element-plus/es')['ElCollapse']
ElCollapseItem: typeof import('element-plus/es')['ElCollapseItem']
Expand All @@ -25,6 +26,8 @@ declare module 'vue' {
ElRow: typeof import('element-plus/es')['ElRow']
ElSelect: typeof import('element-plus/es')['ElSelect']
ElSkeleton: typeof import('element-plus/es')['ElSkeleton']
ElTable: typeof import('element-plus/es')['ElTable']
ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
ElTag: typeof import('element-plus/es')['ElTag']
Header: typeof import('./src/components/Header.vue')['default']
Moon: typeof import('./src/components/icons/Moon.vue')['default']
Expand Down
4 changes: 2 additions & 2 deletions src/components/RoomList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ onMounted(() => {
v-else
v-for="item in __roomList"
:key="item.roomId"
class="flex flex-wrap m-2 rounded-lg bg-stone-50 hover:bg-white transition-all dark:bg-zinc-800 hover:dark:bg-neutral-800 max-w-[220px]"
class="flex flex-wrap m-2 rounded-lg bg-stone-50 hover:bg-white transition-all dark:bg-zinc-800 hover:dark:bg-neutral-800 max-w-[225px]"
>
<div class="overflow-hidden text-ellipsis m-auto p-2 w-full">
<b class="block text-base font-semibold truncate"> {{ item["roomId"] }}</b>
Expand All @@ -113,7 +113,7 @@ onMounted(() => {
}}</span>
</div>
<div class="truncate">创建者:{{ item.creator }}</div>
<div>创建时间:{{ new Date(item.createdAt).toLocaleString() }}</div>
<div>创建时间:{{ new Date(item.createAt).toLocaleString() }}</div>
</div>
<div class="flex p-2 w-full justify-between items-center">
<el-tag disabled :type="item.needPassword ? 'danger' : 'success'">
Expand Down
2 changes: 1 addition & 1 deletion src/types/Room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ export interface RoomList {
peopleNum: number;
needPassword: boolean;
creator: string;
createdAt: number;
createAt: number;
}

0 comments on commit e277d4d

Please sign in to comment.