修改因后端返回结构带来的数据判定问题

This commit is contained in:
何童崇 2021-09-15 09:37:05 +08:00
parent e736591a4f
commit 0e44cbbcdd
1 changed files with 1 additions and 1 deletions

View File

@ -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({