diff --git a/src/components/DashBoard.vue b/src/components/DashBoard.vue
index 164b138..b8994af 100644
--- a/src/components/DashBoard.vue
+++ b/src/components/DashBoard.vue
@@ -40,13 +40,13 @@
查看标签
+
{{thumbnailGallery.shortName}}
标签:{{thumbnailGallery.tag}}
-
@@ -232,6 +232,8 @@ let tags = computed(() => {
})
let thumbnailGallery = computed(() => {
+ if(store.state.thumbnailGallery.images === undefined)
+ store.state.thumbnailGallery.images = []
return store.state.thumbnailGallery
})
diff --git a/src/store/index.js b/src/store/index.js
index a9d6a96..69c96f7 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -293,7 +293,7 @@ const mutations = {
break;
case "下载完成":
task.progress = "下载完成"
- task.download = GalleryManageUrl + "/file/" + encodeURI(task.name) + ".zip?AuthCode=" + state.AuthCode
+ task.download = GalleryManageUrl + "/file/" + encodeURI(task.name) + ".zip?AuthCode=" + state.AuthCode + "&gid=" + task.gid
let links = []
for(let i=1; i<=task.pages; i++)
links.push(GalleryManageUrl + "/onlineImage/" + i + "?gid=" + task.gid);
@@ -632,6 +632,10 @@ export default new vuex.Store({
})
function getShortname(name){
+ if(name === null){
+ console.log(name)
+ return null
+ }
if (name.includes("[")) {
let lastIndex = name.lastIndexOf("[")
name = name.substring(0, lastIndex)