deepsea 1 year ago
parent
commit
17af53f129
1 changed files with 4 additions and 7 deletions
  1. 4 7
      src/views/ordinaryPage/index.vue

+ 4 - 7
src/views/ordinaryPage/index.vue

@@ -2451,13 +2451,10 @@ export default {
       });
     },
     handleCloseImg(benchId) {
-      if(parseInt(benchId) == parseInt(this.connetedBenchId))
-      {
-        this.disconnectBench()
-      }
-      console.log("benchId", benchId);
-      var strRemoteBenchList = window.localStorage.getItem("remoteBenchList");
-      var objRBL = JSON.parse(strRemoteBenchList);
+      this.connetedBenchId = benchId;
+      this.disconnectBench()
+      console.log("benchId", benchId, this.connetedBenchId);
+      var objRBL = this.remoteBenchList;
       if (objRBL) {
         for (var i = 0; i < objRBL.length; i++) {
           if (parseInt(objRBL[i]) == parseInt(benchId)) {