From 764c499ad18e0ce12a24ddd70356b5ab921763ff Mon Sep 17 00:00:00 2001 From: aeizzz Date: Fri, 10 Mar 2023 09:10:47 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20Fixing=20a=20bug.=20=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E7=94=A8=E6=88=B7=E5=90=8D=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/admin/user.ts | 2 +- src/views/admin/tenant/form.vue | 2 +- src/views/app/appuser/index.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/admin/user.ts b/src/api/admin/user.ts index 1d1476b9..a7bbfc02 100644 --- a/src/api/admin/user.ts +++ b/src/api/admin/user.ts @@ -96,7 +96,7 @@ export const registerUser = (userInfo: object) => { }; export function validateUsername(rule: any, value: any, callback: any, isEdit: boolean) { - const flag = new RegExp(/^([a-z\u4e00-\u9fa5\d]+?)$/).test(value); + const flag = new RegExp(/^([a-z\d]+?)$/).test(value); if (!flag) { callback(new Error('用户名支持小写英文、数字、中文')); } diff --git a/src/views/admin/tenant/form.vue b/src/views/admin/tenant/form.vue index 31e64fc5..770aafac 100644 --- a/src/views/admin/tenant/form.vue +++ b/src/views/admin/tenant/form.vue @@ -171,7 +171,7 @@ const onSubmit = () => { const getTenantData = (id: string) => { // 获取部门数据 getObj(id).then((res: any) => { - Object.assign(form, res.data[0]); + Object.assign(form, res.data); }); }; diff --git a/src/views/app/appuser/index.vue b/src/views/app/appuser/index.vue index e9aa1416..4b5a9e3c 100644 --- a/src/views/app/appuser/index.vue +++ b/src/views/app/appuser/index.vue @@ -86,7 +86,7 @@ :title="$t('appuser.importUserTip')" @refreshDataList="getDataList" ref="excelUploadRef" - temp-url="/admin/sys-file/local/file/user.xlsx" + temp-url="/admin/sys-file/local/file/appuser.xlsx" url="/admin/appuser/import" />