需求优化
This commit is contained in:
parent
d47a1b7cdb
commit
a9dd81a0cf
|
|
@ -54,9 +54,9 @@
|
||||||
</div>
|
</div>
|
||||||
<template #dropdown>
|
<template #dropdown>
|
||||||
<el-dropdown-menu>
|
<el-dropdown-menu>
|
||||||
<router-link to="/user/profile">
|
<!-- <router-link to="/user/profile">
|
||||||
<el-dropdown-item>个人中心</el-dropdown-item>
|
<el-dropdown-item>个人中心</el-dropdown-item>
|
||||||
</router-link>
|
</router-link> -->
|
||||||
<el-dropdown-item
|
<el-dropdown-item
|
||||||
command="setLayout"
|
command="setLayout"
|
||||||
v-if="settingsStore.showSettings"
|
v-if="settingsStore.showSettings"
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,7 @@ const getLogoTextColor = computed(() => {
|
||||||
|
|
||||||
.sidebar-logo-container {
|
.sidebar-logo-container {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 90%;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
line-height: 50px;
|
line-height: 50px;
|
||||||
background: v-bind(getLogoBackground);
|
background: v-bind(getLogoBackground);
|
||||||
|
|
|
||||||
|
|
@ -36,10 +36,11 @@
|
||||||
<el-form-item prop="password">
|
<el-form-item prop="password">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="loginForm.password"
|
v-model="loginForm.password"
|
||||||
|
disabled
|
||||||
|
readonly
|
||||||
:type="showPassword ? 'text' : 'password'"
|
:type="showPassword ? 'text' : 'password'"
|
||||||
size="large"
|
size="large"
|
||||||
auto-complete="off"
|
auto-complete="off"
|
||||||
placeholder="请输入密码"
|
|
||||||
@keyup.enter="handleLogin"
|
@keyup.enter="handleLogin"
|
||||||
>
|
>
|
||||||
<template #prefix
|
<template #prefix
|
||||||
|
|
@ -124,7 +125,7 @@ const { proxy } = getCurrentInstance();
|
||||||
|
|
||||||
const loginForm = ref({
|
const loginForm = ref({
|
||||||
username: "",
|
username: "",
|
||||||
password: "",
|
password: "123456",
|
||||||
rememberMe: false,
|
rememberMe: false,
|
||||||
code: "",
|
code: "",
|
||||||
uuid: "",
|
uuid: "",
|
||||||
|
|
@ -144,7 +145,6 @@ const showPassword = ref(false);
|
||||||
const loginRules = computed(() => {
|
const loginRules = computed(() => {
|
||||||
const rules = {
|
const rules = {
|
||||||
username: [{ required: true, trigger: "blur", message: "请输入您的工号" }],
|
username: [{ required: true, trigger: "blur", message: "请输入您的工号" }],
|
||||||
password: [{ required: true, trigger: "blur", message: "请输入您的密码" }],
|
|
||||||
};
|
};
|
||||||
if (captchaEnabled.value) {
|
if (captchaEnabled.value) {
|
||||||
rules.code = [
|
rules.code = [
|
||||||
|
|
@ -159,7 +159,13 @@ watch(
|
||||||
(newRoute) => {
|
(newRoute) => {
|
||||||
redirect.value = newRoute.query && newRoute.query.redirect;
|
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() {
|
function handleLogin() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue