mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-12-02 11:58:01 +08:00
check agent version
This commit is contained in:
parent
81eeb13b35
commit
7b4b6dd9a9
@ -168,9 +168,7 @@ export default {
|
||||
});
|
||||
};
|
||||
},
|
||||
init(ids) {
|
||||
this.sendMsg("getNodeList:" + ids.join(","));
|
||||
this.getAgentVersion();
|
||||
checkAgentFileVersion() {
|
||||
// 获取是否有新版本
|
||||
checkVersion().then((res) => {
|
||||
if (res.code === 200) {
|
||||
@ -183,6 +181,10 @@ export default {
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
init(ids) {
|
||||
this.sendMsg("getNodeList:" + ids.join(","));
|
||||
this.getAgentVersion();
|
||||
// 创建心跳,防止掉线
|
||||
this.heart && clearInterval(this.heart);
|
||||
this.heart = setInterval(() => {
|
||||
@ -251,6 +253,7 @@ export default {
|
||||
} catch (e) {
|
||||
this.agentVersion = data;
|
||||
}
|
||||
this.checkAgentFileVersion();
|
||||
},
|
||||
getVersionResult(data, nodeId) {
|
||||
this.nodeVersion = Object.assign({}, this.nodeVersion, {
|
||||
|
Loading…
Reference in New Issue
Block a user