瀏覽代碼

添加注释

guicheng 1 月之前
父節點
當前提交
402f223252
共有 1 個文件被更改,包括 2 次插入5 次删除
  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,