mirror of
https://github.com/EasyTier/EasytierGame.git
synced 2025-05-19 10:27:56 +00:00
全局状态同步,修复winipbroadcast无法停止的bug
This commit is contained in:
+9
-5
@@ -253,18 +253,18 @@
|
||||
if (output.stderr) {
|
||||
data.pingLog += `${i + 1}error - ${output.stderr}`;
|
||||
}
|
||||
if(i != data.pingNum - 1) {
|
||||
if (i != data.pingNum - 1) {
|
||||
await awaitTime(1000);
|
||||
}
|
||||
}
|
||||
data.pingLog += '完毕'
|
||||
data.pingLog += "完毕";
|
||||
} catch (err) {
|
||||
ElMessage.error("Ping发生错误");
|
||||
console.error(err);
|
||||
} finally {
|
||||
data.isPing = false;
|
||||
}
|
||||
}else {
|
||||
} else {
|
||||
ElMessage.error("请输入正确的IP");
|
||||
}
|
||||
};
|
||||
@@ -328,9 +328,13 @@
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
dataSubscribe(async (...a) => {
|
||||
return { winIpBcAutoStart: mainStore.winIpBcAutoStart, config: { ...mainStore.config } };
|
||||
return {
|
||||
winIpBcAutoStart: mainStore.winIpBcAutoStart,
|
||||
winipBcStart: mainStore.winipBcStart,
|
||||
winipBcPid: mainStore.winipBcPid,
|
||||
config: { ...mainStore.config }
|
||||
};
|
||||
});
|
||||
|
||||
onMounted(() => {
|
||||
|
||||
Reference in New Issue
Block a user