fix: 参数配置默认idnex+1

This commit is contained in:
TsMask
2023-12-01 14:11:12 +08:00
parent 8a7698b58f
commit 5f89732a61

View File

@@ -828,8 +828,10 @@ function arrayAddInit(data: any[], dataRule: any) {
for (const row of from.record) {
const value = row.value;
if (row.name === 'index') {
if (value !== '') {
if (len !== 0 && value !== '') {
newIndex = parseInt(value) + 1;
} else {
newIndex = parseInt(value);
}
if (isNaN(newIndex)) {
newIndex = 0;
@@ -1366,7 +1368,7 @@ onMounted(() => {
</a-button>
<!--特殊字段拓展显示-->
<span v-if="text.name === 'dnnList'">
({{ text.value.map((s: any) => s.dnn).join() }})
({{ text.value?.map((s: any) => s.dnn).join() }})
</span>
</template>