diff --git a/src/app/service/common.js b/src/app/service/common.js
index 511e4a7..af664bd 100644
--- a/src/app/service/common.js
+++ b/src/app/service/common.js
@@ -42,6 +42,7 @@ export const API_SEARCH = `${API_URL}/api/auth/search`;
export const API_USER_LIST = `${API_URL}/api/auth/overview`;
export const API_USER_REGISTER = `${API_URL}/api/auth/register`;
export const API_USER_LOGIN = `${API_URL}/api/auth/login`;
+export const API_USER_LOGIN_INFO = `${API_URL}/api/auth/login_info`;
export const API_USER_TOKEN = `${API_URL}/api/auth/token`;
export const API_USER_LOGOUT = `${API_URL}/api/auth/logout`;
export const API_USER_DELETE = `${API_URL}/api/auth/delete`;
diff --git a/src/app/views/Login.vue b/src/app/views/Login.vue
index cbeb3aa..4adc6c6 100644
--- a/src/app/views/Login.vue
+++ b/src/app/views/Login.vue
@@ -90,11 +90,16 @@
{{ loginText }}
+
+
+ {{ loginInfo }}
+
+
@@ -132,7 +137,7 @@
import Panel from "../../components/Panel";
// eslint-disable-next-line no-unused-vars
// import router from "../router";
-import { API_USER_LOGIN, sleep } from "../service/common";
+import { API_USER_LOGIN, API_USER_LOGIN_INFO, sleep } from "../service/common";
import { request, setupUserInfo } from "../service/protocol";
export default {
@@ -147,7 +152,8 @@ export default {
closeWindow: false,
loginText: "登录",
loading: false,
- cause: ""
+ cause: "",
+ loginInfo: ""
};
},
methods: {
@@ -211,11 +217,25 @@ export default {
await sleep(1500);
// router.push({ path: `/` });
window.location.href = "/";
+ },
+ async requestLoginInfo() {
+ const res = await request({
+ method: "POST",
+ url: API_USER_LOGIN_INFO,
+ data: {
+ username: this.form.username,
+ password: this.form.password
+ }
+ });
+ this.loginInfo = res?.loginInfo ?? "";
}
},
async mounted() {
console.log("Welcome use MCSManager.");
console.log("Copyright 2022 Suwings All rights reserved.");
+ // 请求登录界面文案
+ this.requestLoginInfo();
+
// try {
// await setupUserInfo();
// if (this.$store.state?.userInfo?.uuid) {
diff --git a/src/app/views/Settings.vue b/src/app/views/Settings.vue
index 0a5b742..d90ee44 100644
--- a/src/app/views/Settings.vue
+++ b/src/app/views/Settings.vue
@@ -69,6 +69,20 @@
+
+
+
+
登录界面简单说明
+
+ 用于显示在登录界面公开简要说明文字,可以用于管理员身份介绍,备案信息介绍
+
+
+
+
+