界面
This commit is contained in:
@@ -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: "加载中...",
|
||||
|
||||
@@ -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;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user