From 9a06bad8e4eeabc61dad6b26c27c9c9a00e22fa4 Mon Sep 17 00:00:00 2001 From: dhb52 Date: Mon, 9 Sep 2024 22:52:45 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20production=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E9=A1=B5=E9=9D=A2=E4=B8=8D=E6=8F=90=E4=BE=9B?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E5=AF=86=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/login.vue b/src/views/login.vue index db1fca6..6aa8d87 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -72,10 +72,12 @@ import { HttpStatus } from '@/enums/RespEnum'; const userStore = useUserStore(); const router = useRouter(); +const isProd = import.meta.env.VITE_APP_ENV === 'production'; + const loginForm = ref({ tenantId: '000000', - username: 'admin', - password: 'admin123', + username: isProd ? '' : 'admin', + password: isProd ? '' : 'admin123', rememberMe: false, code: '', uuid: '' From f6228a5119e7111c663532789c0ddfeddc071efd Mon Sep 17 00:00:00 2001 From: dhb52 Date: Mon, 9 Sep 2024 22:53:43 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20roleIds=E5=BA=94=E4=B8=BA=E6=95=B0?= =?UTF-8?q?=E5=AD=97=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/user/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/system/user/types.ts b/src/api/system/user/types.ts index 0787372..4b221b4 100644 --- a/src/api/system/user/types.ts +++ b/src/api/system/user/types.ts @@ -64,7 +64,7 @@ export interface UserForm { status: string; remark?: string; postIds: string[]; - roleIds: string[]; + roleIds: number[]; } export interface UserInfoVO {