diff --git a/src/overview/Overview.vue b/src/overview/Overview.vue index f88d2a94c89bd59bc8120637463d7b2a0b0912f0..e2271bfd9c6462f2e05411653b373a663597d5a1 100644 --- a/src/overview/Overview.vue +++ b/src/overview/Overview.vue @@ -256,9 +256,13 @@ export default { }) }) }) - this.currentNodeIp = this.nodeList[0].mechostIp - this.currentApp = this.nodeList[0].appList[0] - this.inputAppName = this.currentApp.appPkgName + if (this.nodeList[0]) { + this.currentNodeIp = this.nodeList[0].mechostIp + if (this.nodeList[0].appList[0]) { + this.currentApp = this.nodeList[0].appList[0] + this.inputAppName = this.currentApp.appPkgName + } + } }).catch(error => { console.log(error) })