Преглед изворни кода

例题输入自动转化为;

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) {
         } catch (error) {
             console.log(error);
             console.log(error);
         }
         }
-
+        if (selectedCompilation.example) {
+            selectedCompilation.example = selectedCompilation.example.join(';');
+        }
         let renderData = {
         let renderData = {
             id: id,
             id: id,
             compilationList: compilationList,
             compilationList: compilationList,