From d16ea26deac5015887229286db7e2a2af9c306ab Mon Sep 17 00:00:00 2001 From: RogerWork Date: Tue, 6 Aug 2024 09:10:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8E=A5=E5=8F=A3=E4=B8=8B?= =?UTF-8?q?=E6=8B=89=E5=88=97=E8=A1=A8=E6=94=AF=E6=8C=81=E7=AD=9B=E9=80=89?= =?UTF-8?q?=E5=8A=9F=E8=83=BD,=20=E4=BF=AE=E5=A4=8D=E6=B8=85=E7=A9=BA?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=97=B6=E8=8E=B7=E5=8F=96=E5=88=B0undefined?= =?UTF-8?q?=E9=97=AE=E9=A2=98=EF=BC=8C=E4=BF=AE=E5=A4=8Dkeepalive=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E8=B7=B3=E8=BD=AC=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ec_api/BasicConfig.vue | 4 ++-- src/components/ec_api/TabArea.vue | 2 +- src/layout/index.vue | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) 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(() => { - - +