Bladeren bron

添加注释

guicheng 1 maand geleden
bovenliggende
commit
402f223252
1 gewijzigde bestanden met toevoegingen van 2 en 5 verwijderingen
  1. 2 5
      src/views/api/apiInfo/hook.tsx

+ 2 - 5
src/views/api/apiInfo/hook.tsx

@@ -2,9 +2,6 @@ import {
   reactive,
   onMounted,
   ref,
-  ElMessage,
-  ElMessageBox,
-  http,
   PaginationProps
 } from "@/utils/importUsed";
 import { requestSearch, requestDelete } from "@/utils/handlePort";
@@ -17,10 +14,11 @@ export function useApiInfo() {
     groupIdQuery();
   });
   const form = reactive({
+    // 根据字段生成对象
     groupId: "", //分组
     apiName: "" //接口名称
   });
-
+  // 渲染表单组件和 form 字段相对应
   const formData = ref({
     groupId: {
       label: "分组",
@@ -246,7 +244,6 @@ export function useApiInfo() {
     handleSelectionChange,
     ruleFormRef,
     groupIdQuery,
-
     handleAdd,
     addVisible,
     handleSetVersion,