forked from Gitlink/forgeplus-react
修改因后端返回结构带来的数据判定问题
This commit is contained in:
parent
e736591a4f
commit
0e44cbbcdd
|
@ -27,7 +27,7 @@ export async function getNoticeDetail(id) {
|
|||
method: 'get',
|
||||
params:{flag:1}
|
||||
});
|
||||
if (res.message === 'success') {
|
||||
if (res.data) {
|
||||
return res.data;
|
||||
} else {
|
||||
notification.open({
|
||||
|
|
Loading…
Reference in New Issue