修复BUG: 系统配置中,radio保存的值错误

pull/71/head
李强 2022-08-21 19:33:14 +08:00
parent cf6c7814b6
commit e1ee69da94
2 changed files with 3 additions and 1 deletions

View File

@ -256,6 +256,8 @@ class InitSettingsViewSet(APIView):
:param data: :param data:
:return: :return:
""" """
if not self.request.query_params.get('key', ''):
return data
new_data = {} new_data = {}
for key in self.request.query_params.get('key', '').split('|'): for key in self.request.query_params.get('key', '').split('|'):
if key: if key:

View File

@ -74,7 +74,7 @@
<el-radio <el-radio
v-for="item in dictionary(item.setting) || []" v-for="item in dictionary(item.setting) || []"
:key="item.value" :key="item.value"
:label="item.label" :label="item.value"
:value="item.value"> :value="item.value">
{{ item.label }} {{ item.label }}
</el-radio> </el-radio>