diff --git a/src/components/ec_api/BasicConfig.vue b/src/components/ec_api/BasicConfig.vue index 24ceb74..ef4fa16 100644 --- a/src/components/ec_api/BasicConfig.vue +++ b/src/components/ec_api/BasicConfig.vue @@ -164,7 +164,7 @@ function handle_api_data() { }) }) // 更新first_tab_api对应的值 - store.state.ecApiModule.first_tab_api_id = SelectApi.value[0]['id'] + store.state.ecApiModule.first_tab_api_id = SelectApi.value[0] ? SelectApi.value[0]['id'] : 0 // 生成被选择的api参数对象 SelectApiId.value.forEach(api_id => { if (ApiParams.value.hasOwnProperty(api_id)) { @@ -293,7 +293,7 @@ onMounted(() => { - - +