소스 검색

更改返回数据格式

liuyu 5 년 전
부모
커밋
e79088d7c5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/controller/uploadquestion.js

+ 1 - 1
app/controller/uploadquestion.js

@@ -16,7 +16,7 @@ class UploadquestionController extends Controller {
   // 完成度查询
   async completion() {
     const res = await this.service.completion(this.ctx.query);
-    this.ctx.ok({ ...res });
+    this.ctx.ok({ data: res });
   }
 
 }