删除腾讯地图定位服务修复说明文档,更新CustomerList组件样式以支持离线用户状态,调整MessageList组件的加载状态管理,增强filter工具以支持XML格式位置消息的识别。

This commit is contained in:
超级老白兔
2025-11-24 15:37:57 +08:00
parent bda57a84e8
commit c801490c2f
6 changed files with 13 additions and 80 deletions

View File

@@ -47,6 +47,11 @@
.active & {
border-color: #1890ff;
}
&.offline {
filter: grayscale(100%);
opacity: 0.6;
}
}
}
.allUser {

View File

@@ -89,7 +89,6 @@ const CustomerList: React.FC = () => {
>
<div className={styles.allUser}></div>
</Badge>
<div className={`${styles.onlineIndicator} ${styles.online}`} />
</div>
{customerList.map(customer => (
<div
@@ -105,7 +104,7 @@ const CustomerList: React.FC = () => {
<Avatar
src={customer.avatar}
size={50}
className={styles.userAvatar}
className={`${styles.userAvatar} ${!customer.isOnline ? styles.offline : ""}`}
style={{
backgroundColor: !customer.avatar ? "#1890ff" : undefined,
}}
@@ -113,9 +112,6 @@ const CustomerList: React.FC = () => {
{!customer.avatar && customer.name.charAt(0)}
</Avatar>
</Badge>
<div
className={`${styles.onlineIndicator} ${customer.isOnline ? styles.online : styles.offline}`}
/>
</div>
))}
</>

View File

@@ -383,7 +383,7 @@ const MessageList: React.FC<MessageListProps> = () => {
const requestId = ++loadRequestRef.current;
const initializeSessions = async () => {
setLoading(true);
// setLoading(true);
try {
const cachedSessions =
@@ -416,7 +416,7 @@ const MessageList: React.FC<MessageListProps> = () => {
}
} finally {
if (!isCancelled && loadRequestRef.current === requestId) {
setLoading(false);
// setLoading(false);
}
}
};