From 2463f06ba12e98c29680a91ffae49195d473e07b Mon Sep 17 00:00:00 2001 From: MaysWind Date: Wed, 2 Aug 2023 00:14:09 +0800 Subject: [PATCH] only show add default categories button when really have no category --- src/views/mobile/categories/ListPage.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/mobile/categories/ListPage.vue b/src/views/mobile/categories/ListPage.vue index 8013a9db..c5966835 100644 --- a/src/views/mobile/categories/ListPage.vue +++ b/src/views/mobile/categories/ListPage.vue @@ -22,7 +22,7 @@ - @@ -188,6 +188,9 @@ export default { } return true; + }, + noCategory() { + return this.categories.length < 1; } }, created() {