fix 支持昵称跟姓名修改

This commit is contained in:
wkj 2024-09-24 09:56:08 +08:00
parent b20acd8207
commit 685463c91a
3 changed files with 5 additions and 5 deletions

View File

@ -32,7 +32,7 @@ export default function Render(props) {
<>
<Input disabled={!isNew && !allowUpdateName} onChange={(e) => {
const strValue = e.target.value;
if (isNew) {
if (isNew || allowUpdateName) {
update({
name: strValue,
});
@ -44,7 +44,7 @@ export default function Render(props) {
<>
<Input disabled={!isNew && !allowUpdateNickname} value={nickname} onChange={(e) => {
const strValue = e.target.value;
if (isNew) {
if (isNew || allowUpdateNickname) {
update({
nickname: strValue,
});

View File

@ -1,6 +1,6 @@
{
"name": "oak-general-business",
"version": "5.2.11",
"version": "5.2.12",
"description": "oak框架中公共业务逻辑的实现",
"author": {
"name": "XuChang"

View File

@ -96,7 +96,7 @@ export default function Render(
disabled={!isNew && !allowUpdateName}
onChange={(e) => {
const strValue = e.target.value;
if (isNew) {
if (isNew || allowUpdateName) {
update({
name: strValue,
});
@ -114,7 +114,7 @@ export default function Render(
value={nickname}
onChange={(e) => {
const strValue = e.target.value;
if (isNew) {
if (isNew || allowUpdateNickname) {
update({
nickname: strValue,
});