Commit 3fdc1595 by hxx

协议优化

parent 395f4681
...@@ -81,6 +81,8 @@ ...@@ -81,6 +81,8 @@
if (val) { if (val) {
this.reRerender = true; this.reRerender = true;
this.len = 0; this.len = 0;
this.restTime = 0;
this.currentIndex = 0;
this.initData(); this.initData();
} }
}, },
...@@ -89,15 +91,12 @@ ...@@ -89,15 +91,12 @@
}, },
index(val) { index(val) {
this.currentIndex = val; this.currentIndex = val;
},
protocolList(val) {
this.currentProtocol = val[this.index];
this.initData();
} }
}, },
methods: { methods: {
initData() { initData() {
if (this.len !== 0 || !this.isShow) return; if (this.len !== 0 || !this.isShow) return;
this.currentProtocol = this.protocolList[this.index];
this.len = this.protocolList.length; this.len = this.protocolList.length;
this.changeData(); this.changeData();
}, },
...@@ -172,6 +171,7 @@ ...@@ -172,6 +171,7 @@
.protocol-content { .protocol-content {
padding: 0 15px 80px; padding: 0 15px 80px;
overflow: auto; overflow: auto;
flex: 1;
} }
.protocol-footer { .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