Showing
1 changed file
with
2 additions
and
2 deletions
| 1 | /* | 1 | /* |
| 2 | * @Date: 2022-05-18 22:56:08 | 2 | * @Date: 2022-05-18 22:56:08 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-08-12 11:52:47 | 4 | + * @LastEditTime: 2024-08-12 17:35:51 |
| 5 | * @FilePath: /data-table/src/api/fn.js | 5 | * @FilePath: /data-table/src/api/fn.js |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | */ | 7 | */ |
| ... | @@ -21,7 +21,7 @@ export const fn = (api) => { | ... | @@ -21,7 +21,7 @@ export const fn = (api) => { |
| 21 | return res.data || true; | 21 | return res.data || true; |
| 22 | } else { | 22 | } else { |
| 23 | // tslint:disable-next-line: no-console | 23 | // tslint:disable-next-line: no-console |
| 24 | - if (!res.data.show) return false; | 24 | + if (res.data.show === false) return false; |
| 25 | showFailToast({ | 25 | showFailToast({ |
| 26 | message: res.data.msg, | 26 | message: res.data.msg, |
| 27 | duration: 5000, | 27 | duration: 5000, | ... | ... |
-
Please register or login to post a comment