diff --git a/frontend/src/views/login/components/login-form.vue b/frontend/src/views/login/components/login-form.vue
index 080f1a8d17..9471cb1c1c 100644
--- a/frontend/src/views/login/components/login-form.vue
+++ b/frontend/src/views/login/components/login-form.vue
@@ -61,6 +61,16 @@
{{ t('login.form.login') }}
+
+
+
{{ t('login.form.username') }}:
+
demo
+
+
+
{{ t('login.form.password') }}:
+
demo
+
+
{{ t('login.form.modeLoginMethods') }}
@@ -127,6 +137,8 @@
return props.isPreview ? props.slogan : appStore.pageConfig.slogan;
});
+ const showDemo = window.location.hostname === 'demo.metersphere.com';
+
const errorMessage = ref('');
const { loading, setLoading } = useLoading();
diff --git a/frontend/src/views/login/locale/en-US.ts b/frontend/src/views/login/locale/en-US.ts
index 06f3549d3c..bd9da405a2 100644
--- a/frontend/src/views/login/locale/en-US.ts
+++ b/frontend/src/views/login/locale/en-US.ts
@@ -16,4 +16,6 @@ export default {
'login.form.modeLoginMethods': 'More',
'login.form.accountLogin': 'Account login',
'login.form.LDAPLogin': 'LDAP',
+ 'login.form.username': 'Username',
+ 'login.form.password': 'Password',
};
diff --git a/frontend/src/views/login/locale/zh-CN.ts b/frontend/src/views/login/locale/zh-CN.ts
index 4e97587468..fd226e181f 100644
--- a/frontend/src/views/login/locale/zh-CN.ts
+++ b/frontend/src/views/login/locale/zh-CN.ts
@@ -16,4 +16,6 @@ export default {
'login.form.modeLoginMethods': '更多登录方式',
'login.form.accountLogin': '账号登录',
'login.form.LDAPLogin': 'LDAP登录',
+ 'login.form.username': '用户名',
+ 'login.form.password': '密码',
};