check agent version

This commit is contained in:
bwcx_jzy 2021-12-24 13:15:47 +08:00
parent 81eeb13b35
commit 7b4b6dd9a9
No known key found for this signature in database
GPG Key ID: 5E48E9372088B9E5

View File

@ -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, {