fix(系统设置): 项目名称前后有空格时删除失败

--bug=1013851 --user=李玉号 【系统设置】创建的项目名称前后有多个空格  删除失败
https://www.tapd.cn/55049933/s/1176019
This commit is contained in:
shiziyuan9527 2022-06-08 12:00:21 +08:00 committed by f2c-ci-robot[bot]
parent b33c859ff7
commit 070cdc5d95
1 changed files with 2 additions and 1 deletions

View File

@ -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 {