Skip to content

Commit

Permalink
perf: update macro
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaviilee committed Jul 5, 2024
1 parent 63e43ae commit 9b889b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/post/macro.vue
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,8 @@ export default {
if (
!data.post_title ||
data.post_title?.indexOf("自用") > -1 ||
data.post_meta?.data?.every((item) => !item.macro)
(!data.is_wujie && data.post_meta?.data?.every((item) => !item.macro)) ||
(data.is_wujie && data.post_meta?.data?.every((item) => !item.sq?.length))
) {
data.visible = 1;
}
Expand Down

0 comments on commit 9b889b0

Please sign in to comment.