去除本子更新(同步更新)

This commit is contained in:
chuzhongzai 2023-12-23 15:33:20 +08:00
parent 21d8053dbf
commit f1270e3ebb
2 changed files with 0 additions and 19 deletions

View File

@ -140,8 +140,6 @@
size="large">在线看</el-button>
<el-button @click="editGalleryTag(currentGallery)" :disabled="currentGallery.status !== '下载完成'"
size="large">编辑标签</el-button>
<el-button @click="updateGallery(currentGallery.link)" :disabled="currentGallery.status !== '下载完成'"
size="large">更新本子</el-button>
</template>
</el-dialog>
@ -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

View File

@ -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'){