refactor: 提取默认登录使用的租户与账号密码, 规避潜在的账户泄露问题

This commit is contained in:
DevDengChao committed 2024-05-21 17:44:37 +08:00
1 parent be978f2e9f
commit d883b860ac
3 files changed
+11 -3

No files matched your search

+3 -3
View File
@@ -184,9 +184,9 @@ const loginData = reactive({
captchaEnable: import.meta.env.VITE_APP_CAPTCHA_ENABLE,
tenantEnable: import.meta.env.VITE_APP_TENANT_ENABLE,
loginForm: {
tenantName: '芋道源码',
username: 'admin',
password: 'admin123',
tenantName: import.meta.env.VITE_APP_DEFAULT_LOGIN_TENANT || '',
username: import.meta.env.VITE_APP_DEFAULT_LOGIN_USERNAME || '',
password: import.meta.env.VITE_APP_DEFAULT_LOGIN_PASSWORD || '',
captchaVerification: '',
rememberMe: true // 默认记录我。如果不需要,可手动修改
}