diff --git a/pages/index.vue b/pages/index.vue index 7cdf8d6..a432925 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -272,21 +272,6 @@ {{ !data.isStart ? "启动联机" : "停止联机" }} @@ -1423,7 +1429,7 @@ }); } } - if(mainStore.config.privateMode) { + if (mainStore.config.privateMode) { args.push("--private-mode", "true"); } return args; @@ -1688,6 +1694,21 @@ } ); } + + if (command === "reconnect") { + if (data.isStart) { + ElMessage.info({ + message: "正在重新联机...", + duration: 2200 + }); + await handleConnection(); + setTimeout(() => { + handleConnection(); + }, 2000); + }else { + handleConnection(); + } + } }; const handleDeleteAdminConfig = async () => { @@ -1926,24 +1947,25 @@ }; const storageDialog = async () => { - await etWindows("storage-listener", { - title: "自建服务器", - minWidth: 0, - minHeight: 0, - width: 0, - height: 0, - x: 9999, - y: 9999, - resizable: false, - transparent: true, - hiddenTitle: true, - alwaysOnBottom: true, - url: "#/storage-listener" - }, - (dialog) => { - dialog.hide(); + await etWindows( + "storage-listener", + { + title: "自建服务器", + minWidth: 0, + minHeight: 0, + width: 0, + height: 0, + x: 9999, + y: 9999, + resizable: false, + transparent: true, + hiddenTitle: true, + alwaysOnBottom: true, + url: "#/storage-listener" }, - + dialog => { + dialog.hide(); + } ); };