浏览代码

添加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 '删除标段失败';