From 8a36675b8dc0a17361a1fdecc390ea8c0f285715 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A1=97=E8=A7=92=E5=B0=8F=E6=9E=97?= <1013335014@qq.com> Date: Wed, 21 Aug 2024 09:02:55 +0800 Subject: [PATCH] =?UTF-8?q?Demo=EF=BC=9A=E8=BE=93=E5=85=A5=E7=9A=84?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=E6=95=B0=E6=8D=AE=E4=B8=BA=E7=A9=BA=E4=B8=8D?= =?UTF-8?q?=E5=85=81=E8=AE=B8=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/pages/Edit/components/NodeTag.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 = '' },