需求优化

This commit is contained in:
JenniferW 2026-01-12 14:23:33 +08:00
parent d47a1b7cdb
commit d0f4672de7
3 changed files with 13 additions and 7 deletions

View File

@ -54,9 +54,9 @@
</div>
<template #dropdown>
<el-dropdown-menu>
<router-link to="/user/profile">
<!-- <router-link to="/user/profile">
<el-dropdown-item>个人中心</el-dropdown-item>
</router-link>
</router-link> -->
<el-dropdown-item
command="setLayout"
v-if="settingsStore.showSettings"

View File

@ -67,7 +67,7 @@ const getLogoTextColor = computed(() => {
.sidebar-logo-container {
position: relative;
width: 100%;
width: 90%;
height: 50px;
line-height: 50px;
background: v-bind(getLogoBackground);

View File

@ -39,8 +39,9 @@
:type="showPassword ? 'text' : 'password'"
size="large"
auto-complete="off"
placeholder="请输入密码"
@keyup.enter="handleLogin"
disabled
readonly
>
<template #prefix
><svg-icon
@ -124,7 +125,7 @@ const { proxy } = getCurrentInstance();
const loginForm = ref({
username: "",
password: "",
password: "123456",
rememberMe: false,
code: "",
uuid: "",
@ -144,7 +145,6 @@ const showPassword = ref(false);
const loginRules = computed(() => {
const rules = {
username: [{ required: true, trigger: "blur", message: "请输入您的工号" }],
password: [{ required: true, trigger: "blur", message: "请输入您的密码" }],
};
if (captchaEnabled.value) {
rules.code = [
@ -159,7 +159,13 @@ watch(
(newRoute) => {
redirect.value = newRoute.query && newRoute.query.redirect;
},
{ immediate: true }
() => loginForm.value.password,
(newVal) => {
if (newVal !== "123456") {
loginForm.value.password = "123456";
}
},
{ immediate: true, deep: true }
);
function handleLogin() {