fix: 修复复制时右上角版本缓存的问题
This commit is contained in:
parent
4118ad2bfb
commit
5657d85037
|
@ -1743,7 +1743,11 @@ export default {
|
|||
},
|
||||
getVersionHistory() {
|
||||
this.$get('/api/automation/versions/' + this.currentScenario.id, response => {
|
||||
if (this.currentScenario.copy) {
|
||||
this.versionData = response.data.filter(v => v.versionId === this.currentScenario.versionId);
|
||||
} else {
|
||||
this.versionData = response.data;
|
||||
}
|
||||
});
|
||||
},
|
||||
compare(row) {
|
||||
|
|
|
@ -231,7 +231,11 @@ export default {
|
|||
},
|
||||
getVersionHistory() {
|
||||
this.$get('/api/definition/versions/' + this.basisData.id, response => {
|
||||
if (this.httpForm.isCopy) {
|
||||
this.versionData = response.data.filter(v => v.versionId === this.httpForm.versionId);
|
||||
} else {
|
||||
this.versionData = response.data;
|
||||
}
|
||||
});
|
||||
},
|
||||
compare(row) {
|
||||
|
|
|
@ -555,7 +555,11 @@ export default {
|
|||
},
|
||||
getVersionHistory() {
|
||||
this.$get('/api/definition/versions/' + this.httpForm.id, response => {
|
||||
if (this.httpForm.isCopy) {
|
||||
this.versionData = response.data.filter(v => v.versionId === this.httpForm.versionId);
|
||||
} else {
|
||||
this.versionData = response.data;
|
||||
}
|
||||
});
|
||||
},
|
||||
compare(row) {
|
||||
|
|
|
@ -235,7 +235,11 @@ export default {
|
|||
},
|
||||
getVersionHistory() {
|
||||
this.$get('/api/definition/versions/' + this.basisData.id, response => {
|
||||
if (this.httpForm.isCopy) {
|
||||
this.versionData = response.data.filter(v => v.versionId === this.httpForm.versionId);
|
||||
} else {
|
||||
this.versionData = response.data;
|
||||
}
|
||||
});
|
||||
},
|
||||
compare(row) {
|
||||
|
|
|
@ -352,7 +352,11 @@ export default {
|
|||
},
|
||||
getVersionHistory() {
|
||||
this.$get('/api/definition/versions/' + this.basisData.id, response => {
|
||||
if (this.httpForm.isCopy) {
|
||||
this.versionData = response.data.filter(v => v.versionId === this.httpForm.versionId);
|
||||
} else {
|
||||
this.versionData = response.data;
|
||||
}
|
||||
});
|
||||
},
|
||||
compare(row) {
|
||||
|
|
Loading…
Reference in New Issue