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

This commit is contained in:
chuzhongzai
2024-09-01 19:17:19 +08:00
parent 47ccefb2d2
commit 040811ec5b
3 changed files with 51 additions and 7 deletions
+4
View File
@@ -341,6 +341,9 @@ const mutations = {
state.sortType = sortType
sortTasks(state)
},
_setGalleryNameType(state, galleryNameType){
state.galleryNameType = galleryNameType
},
_setShowNameType(state, type){
if(type === "shortName")
state.length = state.shortLength
@@ -397,6 +400,7 @@ const state = {
isInclude: false, //是否搜索到任务
searchTask: [], //搜索到的任务
isShowHistory: false, //是否打开面板
galleryNameType: 'shortName', //名字类型 shortName name
category: 'myDownload', //分类
sortType:'shortName', //排序类型
currentTasks: [], //当前任务