From f1270e3ebb62ae9e1116999950d66aad89fa18d9 Mon Sep 17 00:00:00 2001 From: chuzhongzai Date: Sat, 23 Dec 2023 15:33:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E6=9C=AC=E5=AD=90=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=EF=BC=88=E5=90=8C=E6=AD=A5=E6=9B=B4=E6=96=B0=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Side.vue | 5 ----- src/store/index.js | 14 -------------- 2 files changed, 19 deletions(-) diff --git a/src/components/Side.vue b/src/components/Side.vue index edd62eb..840393e 100644 --- a/src/components/Side.vue +++ b/src/components/Side.vue @@ -140,8 +140,6 @@ size="large">在线看 编辑标签 - 更新本子 @@ -384,9 +382,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).then(() => { isViewing.value = false diff --git a/src/store/index.js b/src/store/index.js index 800cf18..3b25ec8 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'){