fix: 默认选择AMF找不到选首个
This commit is contained in:
@@ -1071,9 +1071,12 @@ onMounted(() => {
|
||||
);
|
||||
// 默认选择AMF
|
||||
const item = neCascaderOtions.value.find(s => s.value === 'AMF');
|
||||
if (item) {
|
||||
if (item && item.children) {
|
||||
const info = item.children[0];
|
||||
neTypeSelect.value = [info.neType, info.neId];
|
||||
} else {
|
||||
const info = neCascaderOtions.value[0].children[0];
|
||||
neTypeSelect.value = [info.neType, info.neId];
|
||||
}
|
||||
fnGetParamConfigTopTab();
|
||||
}
|
||||
@@ -1421,7 +1424,6 @@ onMounted(() => {
|
||||
v-else-if="Array.isArray(text.array)"
|
||||
>
|
||||
{{ t('common.viewText') }}
|
||||
|
||||
</a-button>
|
||||
<div v-else class="editable-cell__text-wrapper">
|
||||
{{ `${text.value}` }}
|
||||
@@ -1465,7 +1467,9 @@ onMounted(() => {
|
||||
"
|
||||
>
|
||||
<a-tooltip>
|
||||
<template #title>{{t('views.configManage.configParam.post')}}</template>
|
||||
<template #title>{{
|
||||
t('views.configManage.configParam.post')
|
||||
}}</template>
|
||||
<a-popconfirm
|
||||
v-if="
|
||||
tableState.arrayChildNewIndex ===
|
||||
|
||||
@@ -297,9 +297,12 @@ onMounted(() => {
|
||||
);
|
||||
// 默认选择AMF
|
||||
const item = neCascaderOtions.value.find(s => s.value === 'AMF');
|
||||
if (item) {
|
||||
if (item && item.children) {
|
||||
const info = item.children[0];
|
||||
state.neType = [info.neType, info.neId];
|
||||
} else {
|
||||
const info = neCascaderOtions.value[0].children[0];
|
||||
state.neType = [info.neType, info.neId];
|
||||
}
|
||||
fnGetList();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user