From 4d23b3b5b0a0d26369cd4303d46380c631cc75a9 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 27 Jul 2020 17:55:03 +0800 Subject: [PATCH] img bug --- test_mini/app.js | 4 ++-- test_mini/project.config.json | 2 +- test_server/examtest/serializers.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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):