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 { 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: ''