diff --git a/web/src/pages/Edit/components/NodeTag.vue b/web/src/pages/Edit/components/NodeTag.vue index 1c7210ed..26831d76 100644 --- a/web/src/pages/Edit/components/NodeTag.vue +++ b/web/src/pages/Edit/components/NodeTag.vue @@ -102,7 +102,9 @@ export default { * @Desc: 添加 */ add() { - this.tagArr.push(this.tag) + const text = this.tag.trim() + if (!text) return + this.tagArr.push(text) this.tag = '' },