需求优化
This commit is contained in:
parent
d47a1b7cdb
commit
a9dd81a0cf
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -36,10 +36,11 @@
|
|||
<el-form-item prop="password">
|
||||
<el-input
|
||||
v-model="loginForm.password"
|
||||
disabled
|
||||
readonly
|
||||
:type="showPassword ? 'text' : 'password'"
|
||||
size="large"
|
||||
auto-complete="off"
|
||||
placeholder="请输入密码"
|
||||
@keyup.enter="handleLogin"
|
||||
>
|
||||
<template #prefix
|
||||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue