feat: production环境登录页面不提供账号密码

This commit is contained in:
dhb52 2024-09-09 22:52:45 +08:00
parent 483af13741
commit 9a06bad8e4

View File

@ -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<LoginData>({
tenantId: '000000',
username: 'admin',
password: 'admin123',
username: isProd ? '' : 'admin',
password: isProd ? '' : 'admin123',
rememberMe: false,
code: '',
uuid: ''