修复BUG: 修复初始化编码问题
parent
bd20a54618
commit
5aae10fed1
|
@ -4,7 +4,6 @@ from django.conf import settings
|
|||
from django.db import ProgrammingError
|
||||
from django.db import connection
|
||||
|
||||
|
||||
def is_tenants_mode():
|
||||
"""
|
||||
判断是否为租户模式
|
||||
|
|
|
@ -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 = {}
|
||||
# 配置过滤条件,如果有唯一标识字段则使用唯一标识字段,否则使用全部字段
|
||||
|
|
|
@ -74,7 +74,6 @@ export const crudOptions = (vm) => {
|
|||
align: 'center',
|
||||
width: 80
|
||||
},
|
||||
|
||||
viewOptions: {
|
||||
componentType: 'form'
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue