From 898d67422ca728f2bdc1f25dd1210e9a178c346a Mon Sep 17 00:00:00 2001 From: liyongde <1419499670@qq.com> Date: Wed, 4 Feb 2026 16:19:33 +0800 Subject: [PATCH] =?UTF-8?q?opt:=20=E8=AF=B7=E6=B1=82=E6=96=B9=E5=BC=8F?= =?UTF-8?q?=E9=87=87=E7=94=A8=E5=9B=BA=E5=AE=9A=E4=B8=8B=E6=8B=89=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nl-vue/src/views/mock/mockconfig/form.vue | 12 ++++++++++-- nl-vue/src/views/mock/mockconfig/index.vue | 14 +++++++++++++- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/nl-vue/src/views/mock/mockconfig/form.vue b/nl-vue/src/views/mock/mockconfig/form.vue index 16beab0..758b3d5 100644 --- a/nl-vue/src/views/mock/mockconfig/form.vue +++ b/nl-vue/src/views/mock/mockconfig/form.vue @@ -15,10 +15,11 @@ - @@ -86,6 +87,13 @@ const submitLoading = ref(false) const isEnabledOptions = ref([]) const jsonError = ref('') + // HTTP请求方法选项 + const apiMethodOptions = [ + { label: 'GET', value: 'GET' }, + { label: 'POST', value: 'POST' }, + { label: 'PUT', value: 'PUT' }, + { label: 'DELETE', value: 'DELETE' } + ] // 打开抽屉 const onOpen = (record) => { diff --git a/nl-vue/src/views/mock/mockconfig/index.vue b/nl-vue/src/views/mock/mockconfig/index.vue index d783d68..247b790 100644 --- a/nl-vue/src/views/mock/mockconfig/index.vue +++ b/nl-vue/src/views/mock/mockconfig/index.vue @@ -9,7 +9,12 @@ - + @@ -160,5 +165,12 @@ tableRef.value.clearRefreshSelected() }) } + // HTTP请求方法选项 + const apiMethodOptions = [ + { label: 'GET', value: 'GET' }, + { label: 'POST', value: 'POST' }, + { label: 'PUT', value: 'PUT' }, + { label: 'DELETE', value: 'DELETE' } + ] const isEnabledOptions = tool.dictList('IS_USED')