diff --git a/test_mini/app.js b/test_mini/app.js index 1320ac0..cf82f03 100644 --- a/test_mini/app.js +++ b/test_mini/app.js @@ -57,9 +57,9 @@ App({ globalData: { userInfo: {}, userinfo: {}, // 服务器传回的消费者信息 - host: 'https://apitest.ahctc.cn', + //host: 'https://apitest.ahctc.cn', mediahost: 'https://apitest.ahctc.cn', - //host: 'http://127.0.0.1:8011', + host: 'http://127.0.0.1:8011', //mediahost: 'http://127.0.0.1:8000', token : '', } diff --git a/test_mini/project.config.json b/test_mini/project.config.json index 9fb87b8..cf4b6c2 100644 --- a/test_mini/project.config.json +++ b/test_mini/project.config.json @@ -23,7 +23,7 @@ "disablePlugins": [], "outputPath": "" }, - "useCompilerModule": false, + "useCompilerModule": true, "userConfirmedUseCompilerModuleSwitch": false, "useIsolateContext": true }, diff --git a/test_server/examtest/serializers.py b/test_server/examtest/serializers.py index f1fb29e..6af6490 100644 --- a/test_server/examtest/serializers.py +++ b/test_server/examtest/serializers.py @@ -135,7 +135,7 @@ class PaperQuestionsDetailSerializer(serializers.ModelSerializer): level = serializers.ReadOnlyField(source='question.level') class Meta: model = PaperQuestions - fields = ('id','name','options','right','type','level','total_score','questioncat_name') + fields = ('id','name','options','right','type','level','total_score','questioncat_name', 'img') @staticmethod def setup_eager_loading(queryset):