mirror of
https://github.com/jumpserver/lina.git
synced 2025-10-21 23:59:22 +00:00
fix: 修正创建用户时生成密码的问题
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user