+
+
+
+
+
-
+
+ {{ $t("login.login") }}
+
+
+
+
+
+ 超级管理员:root/123456
+
+
+ 系统管理员:admin/123456
+
+
+ 测试小游客:test/123456
+
+
+
+
+
+
+
+
-
+
-
-
-
-
+
-
+
- Copyright © 2021 - 2024 youlai.tech All Rights Reserved. 有来技术
- 版权所有
+ Copyright © 2021 - 2024 youlai.tech All Rights Reserved.
+
+ 皖ICP备20006496号-2
+
-
皖ICP备20006496号-3
@@ -153,6 +219,12 @@ const captchaBase64 = ref();
// 登录表单ref
const loginFormRef = ref
();
+const logo = ref(new URL(`../../assets/logo.png`, import.meta.url).href);
+
+const loginImage = ref(
+ new URL(`../../assets/images/login-image.svg`, import.meta.url).href
+);
+
const loginData = ref({
username: "admin",
password: "123456",
@@ -263,6 +335,12 @@ function checkCapslock(event: KeyboardEvent) {
}
}
+/** 设置登录凭证 */
+const setLoginCredentials = (username: string, password: string) => {
+ loginData.value.username = username;
+ loginData.value.password = password;
+};
+
onMounted(() => {
getCaptcha();
});