Commit f85c620e by chenwq

```

fix(withdraw): 修复批量标签绑定功能中的条件判断逻辑

- 移除了标签路径长度检查的警告提示
- 修正了transferOutTagId参数的条件赋值逻辑
- 当tagPath为空时传递空字符串而不是最后一个元素
```
1 parent 3141201e
...@@ -92,15 +92,11 @@ export default { ...@@ -92,15 +92,11 @@ export default {
this.$emit('update:visible', false) this.$emit('update:visible', false)
}, },
handleConfirm() { handleConfirm() {
if (!this.tagPath.length) {
this.$message.warning('请选择二/三级标签')
return
}
this.saving = true this.saving = true
this.$apis.withdraw this.$apis.withdraw
.bindTag({ .bindTag({
ids: this.ids, ids: this.ids,
transferOutTagId: this.tagPath[this.tagPath.length - 1] transferOutTagId: this.tagPath.length ? '' : this.tagPath[this.tagPath.length - 1]
}) })
.then(res => { .then(res => {
if (res) { if (res) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!