peng 2 лет назад
Родитель
Сommit
0ba9b1eadd
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      controller/LangArea.py

+ 3 - 1
controller/LangArea.py

@@ -147,7 +147,9 @@ class LangAreaView(TemplateView):
                 if type == 'ios' or type == 'link_ios':
                     content = content + '"' + l + '"="' + content_val + '";\n'
                 else:
-                    content = content + '{"' + l + '":"' + content_val + '"},\n'
+                    content = content + '"' + l + '":"' + content_val + '",\n'
+            if type == 'flutter':
+                content = '{\n' + content + '}'
         elif type == 'android' or type == 'link_android':
             res_qs = LangKeyModel.objects.filter(langvalmodel__la__id=id, type__in=langType). \
                 values('word_key', 'langvalmodel__word_val').order_by('addTime')