diff --git a/src/components/Side.vue b/src/components/Side.vue index ed3e0c7..47d51b0 100644 --- a/src/components/Side.vue +++ b/src/components/Side.vue @@ -25,7 +25,6 @@ 删除 编辑标签 - 更新 分享 @@ -301,9 +300,6 @@ function disMark(gid, tid){ function downloadTask(link){ window.open(link) } -function updateGallery(link){ - store.dispatch("updateGallery", link) -} function deleteGallery(gid){ store.dispatch("deleteGallery", gid) } diff --git a/src/store/index.js b/src/store/index.js index b93815e..71f9f36 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -72,20 +72,6 @@ const actions = { ElMessage("查询失败") }) }, - updateGallery(context, link){ - axios.post(GalleryManageUrl + "/update", qs.stringify({AuthCode: state.AuthCode, link})) - .then((res) => { - if(res.data.result === 'success' && state.galleryRefreshTimer === 0){ - setTimeout(() => { - context.dispatch("updateGalleryTasks", "all").then() - }, 5000) - state.galleryRefreshTimer = setInterval(() => { - context.dispatch("updateGalleryTasks", "undone").then() - }, 20000) - } - ElMessage(res.data.data) - }) - }, validate(context, AuthCode){ axios.post(BaseUrl + "validate?AuthCode=" + AuthCode).then((res)=>{ if(res.data.result === 'success'){