fix: 修复复制时右上角版本缓存的问题

This commit is contained in:
CaptainB 2022-01-20 11:41:02 +08:00 committed by xiaomeinvG
parent 4118ad2bfb
commit 5657d85037
5 changed files with 25 additions and 5 deletions

View File

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

View File

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

View File

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

View File

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

View File

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