소스 검색

fix(webhook): control webhook display

lind 4 년 전
부모
커밋
e7023b1870
2개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/pages/notice/Config/Detail/index.tsx
  2. 1 0
      src/pages/notice/Template/Detail/index.tsx

+ 1 - 0
src/pages/notice/Config/Detail/index.tsx

@@ -459,6 +459,7 @@ const Detail = observer(() => {
             },
           },
           webhook: {
+            'x-visible': id === 'webhook',
             type: 'void',
             properties: {
               url: {

+ 1 - 0
src/pages/notice/Template/Detail/index.tsx

@@ -1152,6 +1152,7 @@ const Detail = observer(() => {
           },
           webhook: {
             type: 'void',
+            'x-visible': id === 'webhook',
             properties: {
               contextAsBody: {
                 title: '请求体',