Commit 3fdc1595 by hxx

协议优化

parent 395f4681
......@@ -81,6 +81,8 @@
if (val) {
this.reRerender = true;
this.len = 0;
this.restTime = 0;
this.currentIndex = 0;
this.initData();
}
},
......@@ -89,15 +91,12 @@
},
index(val) {
this.currentIndex = val;
},
protocolList(val) {
this.currentProtocol = val[this.index];
this.initData();
}
},
methods: {
initData() {
if (this.len !== 0 || !this.isShow) return;
this.currentProtocol = this.protocolList[this.index];
this.len = this.protocolList.length;
this.changeData();
},
......@@ -172,6 +171,7 @@
.protocol-content {
padding: 0 15px 80px;
overflow: auto;
flex: 1;
}
.protocol-footer {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment