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