去除本子更新(同步更新)
This commit is contained in:
parent
85b8a8c2a3
commit
83c093c4ee
@ -25,7 +25,6 @@
|
|||||||
|
|
||||||
<el-button @click="deleteGallery(props.row.gid)" :disabled="props.row.status !== '下载完成'">删除</el-button>
|
<el-button @click="deleteGallery(props.row.gid)" :disabled="props.row.status !== '下载完成'">删除</el-button>
|
||||||
<el-button @click="editGalleryTag(props.row)">编辑标签</el-button>
|
<el-button @click="editGalleryTag(props.row)">编辑标签</el-button>
|
||||||
<el-button @click="updateGallery(props.row.link)" :disabled="props.row.status !== '下载完成'">更新</el-button>
|
|
||||||
<el-button @click="shareGallery({gid:props.row.gid, shortName:props.row.shortName + '.zip'})" v-show="isLion" :disabled="props.row.status !== '下载完成'">分享</el-button>
|
<el-button @click="shareGallery({gid:props.row.gid, shortName:props.row.shortName + '.zip'})" v-show="isLion" :disabled="props.row.status !== '下载完成'">分享</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@ -301,9 +300,6 @@ function disMark(gid, tid){
|
|||||||
function downloadTask(link){
|
function downloadTask(link){
|
||||||
window.open(link)
|
window.open(link)
|
||||||
}
|
}
|
||||||
function updateGallery(link){
|
|
||||||
store.dispatch("updateGallery", link)
|
|
||||||
}
|
|
||||||
function deleteGallery(gid){
|
function deleteGallery(gid){
|
||||||
store.dispatch("deleteGallery", gid)
|
store.dispatch("deleteGallery", gid)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -72,20 +72,6 @@ const actions = {
|
|||||||
ElMessage("查询失败")
|
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){
|
validate(context, AuthCode){
|
||||||
axios.post(BaseUrl + "validate?AuthCode=" + AuthCode).then((res)=>{
|
axios.post(BaseUrl + "validate?AuthCode=" + AuthCode).then((res)=>{
|
||||||
if(res.data.result === 'success'){
|
if(res.data.result === 'success'){
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user