Merge branch 'main' of https://github.com/metersphere/metersphere
This commit is contained in:
commit
dabb338d92
|
@ -326,7 +326,7 @@ export default {
|
|||
let selectDataType = 'all';
|
||||
let routeParamObj = this.$route.params;
|
||||
let redirectVersionId = this.$route.params.versionId;
|
||||
if (redirectVersionId !== 'default') {
|
||||
if (redirectVersionId && redirectVersionId !== 'default') {
|
||||
this.condition.versionId = redirectVersionId;
|
||||
}
|
||||
if (routeParamObj) {
|
||||
|
|
|
@ -1325,7 +1325,7 @@ export default {
|
|||
this.selectDataType = 'all';
|
||||
let routeParamObj = this.$route.params;
|
||||
let redirectVersionId = this.$route.params.versionId;
|
||||
if (redirectVersionId !== 'default') {
|
||||
if (redirectVersionId && redirectVersionId !== 'default') {
|
||||
this.condition.versionId = redirectVersionId;
|
||||
}
|
||||
if (routeParamObj) {
|
||||
|
|
|
@ -1280,7 +1280,7 @@ export default {
|
|||
let routeParam = this.$route.params.dataSelectRange;
|
||||
let dataType = this.$route.params.dataType;
|
||||
let redirectVersionId = this.$route.params.versionId;
|
||||
if (redirectVersionId !== 'default') {
|
||||
if (redirectVersionId && redirectVersionId !== 'default') {
|
||||
this.condition.versionId = redirectVersionId;
|
||||
}
|
||||
if (dataType === 'apiTestCase') {
|
||||
|
|
|
@ -1047,7 +1047,6 @@ export default {
|
|||
});
|
||||
}
|
||||
},
|
||||
|
||||
getColor(enable, method) {
|
||||
if (enable) {
|
||||
return this.methodColorMap.get(method);
|
||||
|
@ -1061,7 +1060,7 @@ export default {
|
|||
let dataRange = this.$route.params.dataSelectRange;
|
||||
let dataType = this.$route.params.dataType;
|
||||
let redirectVersionId = this.$route.params.versionId;
|
||||
if (redirectVersionId !== 'default') {
|
||||
if (redirectVersionId && redirectVersionId !== 'default') {
|
||||
this.condition.versionId = redirectVersionId;
|
||||
}
|
||||
this.selectDataRange = dataType === 'api' ? dataRange : 'all';
|
||||
|
|
|
@ -68,7 +68,7 @@
|
|||
width="30%" @close="close" v-loading="workspaceUpdateLoading">
|
||||
<el-form :model="form" :rules="rules" ref="updateForm" label-position="right" label-width="100px" size="small">
|
||||
<el-form-item :label="$t('commons.name')" prop="name">
|
||||
<el-input v-model="form.name" autocomplete="off" class="form-input"/>
|
||||
<el-input v-model="form.name" autocomplete="off" class="form-input" show-word-limit maxlength="100"/>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('commons.description')" prop="description">
|
||||
<el-input type="textarea" v-model="form.description" class="form-input"></el-input>
|
||||
|
|
Loading…
Reference in New Issue