Browse Source

接口返回方式

duxiangyu 3 years ago
parent
commit
ae8e274117
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/controller/old-adm/ScanController.ts

+ 3 - 2
src/controller/old-adm/ScanController.ts

@@ -14,11 +14,12 @@ class ScanController {
   /**
    * 查询不在当前系统下的设备
    */
-  static async getEquipNotInSys(params) {
-    return await this.http.postRequest(
+  static async getEquipNotInSys(params, fn) {
+    const res = await this.http.postRequest(
       equipquery_pre + `/equip-sys?sysId=${params.sysId}`,
       params
     );
+    return fn ? fn(res) : res;
   }
   /**
    * 查询不在当前系统下的设备