From 615ae3d6518b2fb8e4e6f48401de06ab87e23a33 Mon Sep 17 00:00:00 2001 From: gexinzhineng/gxzn27 <1348660141@qq.com> Date: Fri, 26 May 2023 15:46:22 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E7=BD=AEvxe=E4=BC=9A=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E6=96=B0=E5=A2=9E=E8=A1=A8=E5=8D=95=E6=97=A0=E9=99=90?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=94=A8=E6=88=B7=E5=90=8D=E5=92=8C=E5=AF=86?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/tenant/index.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/system/tenant/index.vue b/src/views/system/tenant/index.vue index bb1ca1a3..ef726bc5 100644 --- a/src/views/system/tenant/index.vue +++ b/src/views/system/tenant/index.vue @@ -128,7 +128,11 @@ const handleCreate = async () => { setDialogTile('create') await nextTick() console.log(allSchemas.formSchema, 'allSchemas.formSchema') - if (allSchemas.formSchema[4].field !== 'username') { + let haveUser = allSchemas.formSchema.filter((res) => { + return res.field == 'username' + }) + if (haveUser.length == 0) { + // if (allSchemas.formSchema[4].field !== 'username') { unref(formRef)?.addSchema( { field: 'username',