fix(接口定义): 修复自定义字段单选框无法选择的缺陷

--bug=1018803 --user=王孝刚 【接口测试】启用自定义模版单选字段无法被选中
https://www.tapd.cn/55049933/s/1275750
This commit is contained in:
wxg0103 2022-10-25 13:55:32 +08:00 committed by wxg0103
parent bab30dd9f9
commit 890b82b1a3
2 changed files with 19 additions and 11 deletions

View File

@ -186,7 +186,7 @@ export default {
},
customFieldForm: {
handler(v, v1) {
if (v && v1 && this.$store.state.apiMap && this.basicForm.id) {
if (v && v1 && store.apiMap && this.basicForm.id) {
this.apiMapStatus();
}
},
@ -245,4 +245,8 @@ export default {
<style scoped>
.case-form {
height: 95%;
overflow: auto;
}
</style>

View File

@ -56,6 +56,7 @@
import draggable from "vuedraggable";
import MsInstructionsIcon from "metersphere-frontend/src/components/MsInstructionsIcon";
import {getUUID} from "metersphere-frontend/src/utils";
export default {
name: "MsSingleHandleDrag",
components: {
@ -120,6 +121,9 @@ export default {
if (!this.isKv) {
item.value = getUUID().substring(0, 8);
}
while (typeof item.value === 'number') {
item.value = getUUID().substring(0, 8);
}
this.data.push(item);
this.editIndex = this.data.length - 1;
},