Commit 5a041e1a authored by 水玉婷's avatar 水玉婷
Browse files

feat:用户列表细节优化

parent de2d3fa6
...@@ -37,8 +37,8 @@ ...@@ -37,8 +37,8 @@
<div class="user-list-content"> <div class="user-list-content">
<div <div
v-for="user in filteredUsers" v-for="user in filteredUsers"
:key="user.id" :key="user.uxid"
:class="['user-item', { active: user.id === activeUserId }]" class="user-item"
@click="handleUserClick(user)" @click="handleUserClick(user)"
> >
<div class="user-info"> <div class="user-info">
...@@ -67,7 +67,7 @@ import { get } from '../utils/axios' ...@@ -67,7 +67,7 @@ import { get } from '../utils/axios'
// 用户接口定义 // 用户接口定义
interface User { interface User {
id: string uxid: string
cname: string cname: string
} }
...@@ -235,11 +235,6 @@ onUnmounted(() => { ...@@ -235,11 +235,6 @@ onUnmounted(() => {
background: @blue-light-1; background: @blue-light-1;
} }
&.active {
background: @blue-light-2;
border-left: 3px solid @primary-color;
}
.user-info { .user-info {
.name-text { .name-text {
font-weight: 500; font-weight: 500;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment