移动端会话列表:切换tab的时候有时会出现列表一直在加载中

This commit is contained in:
zhangyao
2025-05-30 15:48:50 +08:00
parent f08329eef4
commit f63ba187dd

View File

@@ -170,8 +170,8 @@ checkSession().then((user) => {
})
const onLoad = () => {
checkSession().then(() => {
httpGet("/api/chat/list?user_id=" + loginUser.value.id).then((res) => {
checkSession().then((user) => {
httpGet("/api/chat/list?user_id=" + user.id).then((res) => {
if (res.data) {
chats.value = res.data;
allChats.value = res.data;