Commit a8afeaa1 authored by Bill's avatar Bill

fix: 首页数据因权限问题显示为空,仍然保留标题bug

parent a38150e2
......@@ -71,7 +71,10 @@ function useViewRequest<T, P>(fn: (postData: P) => Promise<IRequestSuccess<T>>,
Object.keys(responseData).forEach((_row) => {
if (responseData[_row] && responseData[_row].length !== 0) {
result[_row] = responseData[_row]?.filter((_item) => urls.includes(_item.link));
const tempData = responseData[_row]?.filter((_item) => urls.includes(_item.link));
if (tempData.length !== 0) {
result[_row] = tempData
}
}
})
console.log(result, "result");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment