fix: 修正创建用户时生成密码的问题

This commit is contained in:
OrangeM21
2020-08-04 15:09:39 +08:00
committed by 老广
parent 9efacb68b6
commit da1217972a

View File

@@ -1,5 +1,8 @@
<template>
<GenericCreateUpdatePage v-bind="$data" />
<GenericCreateUpdatePage
v-bind="$data"
:clean-form-value="cleanFormValue"
/>
</template>
<script>
@@ -81,6 +84,14 @@ export default {
}
}
}
},
methods: {
cleanFormValue(value) {
if (!this.password_strategy) {
delete value['password']
}
return value
}
}
}
</script>