From 667f1638532f88f570be51626a676ec6c32e5cd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Chuailei000=E2=80=9D?= <2280131253@qq.com> Date: Thu, 9 Feb 2023 11:45:59 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E8=B5=84=E4=BA=A7=E8=B4=A6=E5=8F=B7?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=90=8D=E7=A7=B0=E6=97=B6=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E5=90=8D=E4=B8=8D=E8=87=AA=E5=8A=A8=E5=90=8C=E6=AD=A5=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AccountCreateUpdateForm/index.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/AccountCreateUpdateForm/index.vue b/src/components/AccountCreateUpdateForm/index.vue index c22822bdb..71c1894d4 100644 --- a/src/components/AccountCreateUpdateForm/index.vue +++ b/src/components/AccountCreateUpdateForm/index.vue @@ -72,7 +72,9 @@ export default { on: { input: ([value], updateForm) => { if (!this.usernameChanged) { - updateForm({ username: value }) + if (!this.account?.name) { + updateForm({ username: value }) + } const maybePrivileged = this.defaultPrivilegedAccounts.includes(value) if (maybePrivileged) { updateForm({ privileged: true })