上线时验证节点是否在线,自己可以再次提交未完成任务(同步更新)

This commit is contained in:
chuzhongzai
2023-08-08 15:23:26 +08:00
parent cd7a8e8df2
commit cade1103bc
3 changed files with 21 additions and 2 deletions
+10
View File
@@ -38,6 +38,8 @@
<hr>
<el-button @click="isQuerying = true">里站搜索</el-button>
<el-button @click="isViewingTag = true">查看标签</el-button>
<hr>
<el-button v-if="isLion" @click="resetUndone">重置任务</el-button>
<div v-show="'images' in thumbnailGallery">
<span>
{{thumbnailGallery.shortName}}<br>
@@ -232,6 +234,10 @@ let thumbnailGallery = computed(() => {
return store.state.thumbnailGallery
})
let isLion = computed(() => {
return store.state.userId === 3
})
function pullNewTag(){
store.dispatch("loadTags")
}
@@ -421,6 +427,10 @@ function showThumbnailGallery(gallery){
document.querySelector(".preview > img").click()
}
//重新给节点发送未完成任务
function resetUndone(){
store.dispatch("resetUndone").then()
}
function deleteAuthCode(){
localStorage.removeItem('auth')
ElMessage("删除授权码完成")
+1 -1
View File
@@ -56,7 +56,7 @@ function closeDialog(){
</template>
<el-scrollbar height="75vh" ref="onlineReadingScrollbar">
<el-image v-for="(link, i) in links" :src="link" :style="{'width': store.state.imageWidth, 'padding-right': store.state.imagePadding, 'background-color': 'gary'}"
:preview-src-list="currentGallery.images" :initial-index="index * lengthPerPage + i" loading="lazy"/>
:preview-src-list="currentGallery.images" :initial-index="index * lengthPerPage + i" lazy/>
</el-scrollbar>
<!-- 十页以下-->