需求改了好多,不需要自己输用户名和qq号了
This commit is contained in:
@@ -99,3 +99,17 @@ export const addDemandReply = async (id, replyData) => {
|
||||
throw error;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取所有需求列表(管理员)
|
||||
* @returns {Promise<Array<Object>>} 返回所有需求列表数据
|
||||
*/
|
||||
export const getAllDemandsList = async () => {
|
||||
try {
|
||||
const response = await axiosInstance.get('/demands/getlistall');
|
||||
return response.data;
|
||||
} catch (error) {
|
||||
console.error('获取所有需求列表失败:', error);
|
||||
throw error;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user