Explorar o código

improvement: 获取自己创建的题目的时候按照时间倒序排列

ChenYangfan %!s(int64=6) %!d(string=hai) anos
pai
achega
3766b774cc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/views/quiz/components/QuestionTable.vue

+ 1 - 1
src/views/quiz/components/QuestionTable.vue

@@ -84,7 +84,7 @@ export default {
       size = 10
       size = 10
     } = {}) {
     } = {}) {
       this.showOwn
       this.showOwn
-        ? getCreatedQuestions({ key: stem, size, page })
+        ? getCreatedQuestions({ key: stem, size, page, sort: 'createAt,desc' })
           .then(({ data: questions, page }) => {
           .then(({ data: questions, page }) => {
             this.questionList = questions
             this.questionList = questions
             this.page = page
             this.page = page