Skip to content

Commit 43d3397

Browse files
committed
Display in descending order by ID by default.
1 parent d856b3c commit 43d3397

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/views/ProblemRating.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
style="width: 90%"
7474
:table-layout="'auto'"
7575
@sort-change="sortChange"
76+
:default-sort="{ prop: 'ID', order: 'descending' }"
7677
>
7778
<el-table-column prop="ID" label="ID" width="180" sortable="custom" />
7879
<el-table-column :label="$t('problemName')">
@@ -178,7 +179,7 @@ onMounted(() => {
178179
problemSetAll.push(item);
179180
filterProblemSet.push(item);
180181
});
181-
currentChange();
182+
query();
182183
});
183184
});
184185

0 commit comments

Comments
 (0)