From 95c6bb4d82c3386308f288fb80ac31246d1461fe Mon Sep 17 00:00:00 2001 From: chuzhongzai Date: Tue, 20 Jan 2026 22:29:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=87=8D=E8=BF=9E=E6=8C=89?= =?UTF-8?q?=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DashBoard.vue | 6 ++++++ src/store/index.js | 13 +++++++++++++ 2 files changed, 19 insertions(+) diff --git a/src/components/DashBoard.vue b/src/components/DashBoard.vue index 3ab7a71..30b250e 100644 --- a/src/components/DashBoard.vue +++ b/src/components/DashBoard.vue @@ -29,6 +29,7 @@ 夜间模式
在线搜索 + 重连节点
重置任务
@@ -191,6 +192,11 @@ let isLion = computed(() => { return store.state.userId === 3 }) +//重连节点 +function reconnect(){ + store.dispatch("reconnect") +} + //修改授权码 function alterAuthCode(){ if(newAuthCode.value.trim() === "" || tempAuthCode.value.trim() === "" || newAuthCode.value !== tempAuthCode.value) diff --git a/src/store/index.js b/src/store/index.js index 6eed185..3159c76 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -6,6 +6,19 @@ const BaseUrl = "https://downloader.lionwebsite.xyz/" const GalleryManageUrl = BaseUrl + "GalleryManage" const actions = { + reconnect(context) { + axios.post(GalleryManageUrl + "/reconnect", { + params: { + AuthCode: state.AuthCode + } + }).then(res => { + if (res.data.result === "success") { + ElMessage("重连成功") + } else { + ElMessage("重连失败") + } + }) + }, updateGalleryTasks(context){ axios.get(GalleryManageUrl, { params:{