新增设置默认显示类型、显示名字、排列顺序

This commit is contained in:
chuzhongzai
2024-09-01 19:17:01 +08:00
parent bb6e7c2874
commit b0730f5114
3 changed files with 53 additions and 9 deletions
+6 -2
View File
@@ -342,6 +342,9 @@ const mutations = {
state.sortType = sortType
sortTasks(state)
},
_setGalleryNameType(state, galleryNameType){
state.galleryNameType = galleryNameType
},
_setShowNameType(state, type){
if(type === "shortName")
state.length = state.shortLength
@@ -395,8 +398,9 @@ const state = {
isInclude: false, //是否搜索到任务
searchTask: [], //搜索到的任务
category: 'myDownload', //分类
sortType:'shortName', //排序类型
category: 'myDownload', //分类 myDownload myCollect total
sortType:'shortName', //排序类型 shortName name createTime
galleryNameType: 'shortName', //名字类型 shortName name
currentTasks: [], //当前任务
weekUsed: {}, //每周用量
}