fix(系统设置): 项目名称前后有空格时删除失败
--bug=1013851 --user=李玉号 【系统设置】创建的项目名称前后有多个空格 删除失败 https://www.tapd.cn/55049933/s/1176019
This commit is contained in:
parent
b33c859ff7
commit
070cdc5d95
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue