From 6f8eab0df32982c9dd2934024e7f0f508f3ed542 Mon Sep 17 00:00:00 2001
From: wkj <278599135@.com>
Date: Mon, 23 Sep 2024 17:56:07 +0800
Subject: [PATCH] =?UTF-8?q?=E5=85=81=E8=AE=B8=E6=9B=B4=E6=96=B0=E6=98=B5?=
=?UTF-8?q?=E7=A7=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
es/components/userRelation/upsert/onUser/web.pc.js | 4 ++--
src/components/userRelation/upsert/onUser/web.pc.tsx | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/es/components/userRelation/upsert/onUser/web.pc.js b/es/components/userRelation/upsert/onUser/web.pc.js
index 8bc794c7c..40b30ddda 100644
--- a/es/components/userRelation/upsert/onUser/web.pc.js
+++ b/es/components/userRelation/upsert/onUser/web.pc.js
@@ -32,7 +32,7 @@ export default function Render(props) {
<>
{
const strValue = e.target.value;
- if (isNew) {
+ if (isNew || allowUpdateName) {
update({
name: strValue,
});
@@ -44,7 +44,7 @@ export default function Render(props) {
<>
{
const strValue = e.target.value;
- if (isNew) {
+ if (isNew || allowUpdateNickname) {
update({
nickname: strValue,
});
diff --git a/src/components/userRelation/upsert/onUser/web.pc.tsx b/src/components/userRelation/upsert/onUser/web.pc.tsx
index ce97fcb0a..034108667 100644
--- a/src/components/userRelation/upsert/onUser/web.pc.tsx
+++ b/src/components/userRelation/upsert/onUser/web.pc.tsx
@@ -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,
});