From 070cdc5d95f79b4aea304eae790acd9bf5deb1be Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Wed, 8 Jun 2022 12:00:21 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=90=8D=E7=A7=B0=E5=89=8D=E5=90=8E=E6=9C=89?= =?UTF-8?q?=E7=A9=BA=E6=A0=BC=E6=97=B6=E5=88=A0=E9=99=A4=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1013851 --user=李玉号 【系统设置】创建的项目名称前后有多个空格 删除失败 https://www.tapd.cn/55049933/s/1176019 --- .../business/components/common/components/MsDeleteConfirm.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/business/components/common/components/MsDeleteConfirm.vue b/frontend/src/business/components/common/components/MsDeleteConfirm.vue index 0c083a332a..2396c60ddb 100644 --- a/frontend/src/business/components/common/components/MsDeleteConfirm.vue +++ b/frontend/src/business/components/common/components/MsDeleteConfirm.vue @@ -61,7 +61,7 @@ this.record = record; }, confirm() { - if (this.value.trim() != 'DELETE-' + this.record.name) { + if (this.value.trim() !== ('DELETE-' + this.record.name).trim()) { this.$warning(this.$t('commons.incorrect_input')); return; } @@ -89,6 +89,7 @@ .delete-tip { font-style: italic; font-weight: bold; + white-space: pre-wrap; } .tip {