Compare commits

..

5 Commits

Author SHA1 Message Date
GeekMaser
31fbf7e48a
Merge pull request #247 from zayn-code/themechange
主题切换按钮:月亮图标重复了
2025-06-03 09:20:57 +08:00
GeekMaser
e2e24078c5
Merge pull request #248 from zayn-code/chatlist
移动端会话列表:切换tab的时候有时会出现列表一直在加载中
2025-06-03 09:20:19 +08:00
zhangyao
39ef92e1ce 移动端会话列表:切换tab的时候有时会出现列表一直在加载中 2025-05-30 15:55:18 +08:00
zhangyao
f63ba187dd 移动端会话列表:切换tab的时候有时会出现列表一直在加载中 2025-05-30 15:48:50 +08:00
zhangyao
23d1ac1021 主题切换按钮:月亮图标重复了 2025-05-30 15:46:33 +08:00
2 changed files with 6 additions and 4 deletions

View File

@ -1,6 +1,6 @@
<template>
<div class="theme-box" @click="toggleTheme">
<span class="iconfont icon-yueliang">{{ themePage === "light" ? "&#xe679;" : "&#xe60b;" }}</span>
<span class="iconfont">{{ themePage === "light" ? "&#xe679;" : "&#xe60b;" }}</span>
</div>
</template>

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;
@ -182,7 +182,9 @@ const onLoad = () => {
error.value = true
showFailToast("加载会话列表失败")
})
}).catch(() => {})
}).catch(() => {
finished.value = true
})
};
const search = () => {