修复BUG: 修复初始化编码问题

pull/58/head
猿小天 2022-05-19 08:48:12 +08:00
parent bd20a54618
commit 5aae10fed1
3 changed files with 1 additions and 3 deletions

View File

@ -4,7 +4,6 @@ from django.conf import settings
from django.db import ProgrammingError
from django.db import connection
def is_tenants_mode():
"""
判断是否为租户模式

View File

@ -34,7 +34,7 @@ class CoreInitialize:
f'init_{Serializer.Meta.model._meta.model_name}.json')
if not os.path.isfile(path_file):
return
with open(path_file) as f:
with open(path_file,encoding="utf-8") as f:
for data in json.load(f):
filter_data = {}
# 配置过滤条件,如果有唯一标识字段则使用唯一标识字段,否则使用全部字段

View File

@ -74,7 +74,6 @@ export const crudOptions = (vm) => {
align: 'center',
width: 80
},
viewOptions: {
componentType: 'form'
},