소스 검색

添加await,延迟

laiguoran 7 년 전
부모
커밋
97cba1968b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/controller/lib_controller.js

+ 1 - 1
app/controller/lib_controller.js

@@ -229,7 +229,7 @@ module.exports = app => {
                     throw '不存在该标段';
                 }
                 //删清指标源和清单数据
-                const result = ctx.service.quotaLib.deleteLibById(id);
+                const result = await ctx.service.quotaLib.deleteLibById(id);
 
                 if (!result) {
                     throw '删除标段失败';