feat: 修改问卷列表排序规则

This commit is contained in:
sudoooooo 2023-11-24 17:21:54 +08:00
parent 0db05680bf
commit 14c768fdc6
2 changed files with 1 additions and 2 deletions

View File

@ -118,7 +118,7 @@ class SurveyService {
owner: condition.userData.username
}
const data = await surveyMeta.find(cond)
.sort({ updateDate: -1 })
.sort({ createDate: -1 })
.limit(condition.pageSize)
.skip((condition.pageNum - 1) * condition.pageSize)
.toArray()

View File

@ -79,7 +79,6 @@ export default {
clientTime: Date.now(),
};
result.encryptType = 'base64';
console.log(result.data)
result.data = btoa(encodeURIComponent(result.data));
return result;
},