去除本子更新(同步更新)
This commit is contained in:
@@ -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'){
|
||||
|
||||
Reference in New Issue
Block a user