From 8e1e53d55edb183fdbe7e7eb579ca046af04e413 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sat, 8 Jul 2023 20:07:09 +0800 Subject: [PATCH] code refactor --- src/views/mobile/tags/ListPage.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/mobile/tags/ListPage.vue b/src/views/mobile/tags/ListPage.vue index 3dea1561..a71a3f4c 100644 --- a/src/views/mobile/tags/ListPage.vue +++ b/src/views/mobile/tags/ListPage.vue @@ -206,7 +206,7 @@ export default { return true; }, hasEditingTag() { - return this.newTag || (this.editingTag.id && this.editingTag.id !== ''); + return !!(this.newTag || (this.editingTag.id && this.editingTag.id !== '')); } }, created() {