This commit is contained in:
2025-11-14 12:03:02 +08:00
parent e20a7755f8
commit 46003a646e
21 changed files with 887 additions and 499 deletions

View File

@@ -86,7 +86,7 @@ request.interceptors.request.use(
const customConfig = config as CustomAxiosRequestConfig;
// 默认不显示加载动画,只有显式开启时才展示
if (customConfig.showLoading) {
if (customConfig.showLoading !== false) {
loadingInstance = ElLoading.service({
lock: true,
text: "加载中...",

View File

@@ -142,7 +142,7 @@ export const messageApi = {
const response = await api.post<MessageUserVO>('/message/my/page', {
pageParam,
filter
});
},{showLoading: false});
return response.data;
},
@@ -181,7 +181,7 @@ export const messageApi = {
* @returns Promise<ResultDomain<number>>
*/
async getUnreadCount(): Promise<ResultDomain<number>> {
const response = await api.get<number>('/message/my/unreadCount');
const response = await api.get<number>('/message/my/unreadCount',{},{showLoading: false});
return response.data;
},