소스 검색

例题输入自动转化为;

zhongzewei 7 년 전
부모
커밋
7fc1aeeb40
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      modules/users/controllers/compilation_controller.js

+ 3 - 1
modules/users/controllers/compilation_controller.js

@@ -61,7 +61,9 @@ class CompilationController extends BaseController {
         } catch (error) {
             console.log(error);
         }
-
+        if (selectedCompilation.example) {
+            selectedCompilation.example = selectedCompilation.example.join(';');
+        }
         let renderData = {
             id: id,
             compilationList: compilationList,