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')