调整主导航菜单按钮的颜色

This commit is contained in:
bob
2024-08-25 13:15:00 +08:00
parent 4f6afd65c5
commit 3f77bca518
2 changed files with 4 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ defineProps(['funcName', 'index'])
<template>
<el-menu-item :index="index">
<el-icon :size="30">
<el-icon :size="30" style="margin: 0">
<slot name="iconSlot"></slot>
</el-icon>
<span>{{ funcName }}</span>
@@ -21,10 +21,12 @@ defineProps(['funcName', 'index'])
flex-direction: column;
align-items: center;
justify-content: center;
color: #ecf5ff;
}
.el-menu-item.is-active {
background-color: #a0cfff;
background-color: #79bbff;
color: #fff;
}
.el-icon {

View File

@@ -66,7 +66,6 @@ const login = async () => {
await form.value.validate() // 登录之前预校验
const res = await userLoginService(formModel.value)
ElMessage.success('登录成功')
console.log(res)
userData.setAt(res.data.data.accessToken)
userData.setRt(res.data.data.refreshToken)
router.push('/')