code refactor

This commit is contained in:
MaysWind
2023-07-08 20:07:09 +08:00
parent 5c9a5c13b8
commit 8e1e53d55e
+1 -1
View File
@@ -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() {