Skip to content

Commit

Permalink
Fixed: Fixed the issue that When switching different node export same…
Browse files Browse the repository at this point in the history
… file
  • Loading branch information
ZhaoJiSen committed Jan 13, 2025
1 parent fdb1dd8 commit 5925ac4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/Table/ListTable/TableAction/RightSide.vue
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,13 @@ export default {
})
},
iExportOptions() {
return assignIfNot(this.exportOptions, { url: this.tableUrl })
/**
* 原本是使用 assignIfNot 此函数内部使用 partialRight, 该函数
* 只在目标对象的属性未定义时才从源对象复制属性,如果目标对象已经有值,则保留原值
* 那如果首次点击的树节点,那么此时 url 就会被确定,后续点击的树节点,那么 url 就不会
* 改变了
*/
return Object.assign({}, this.exportOptions, { url: this.tableUrl })
}
},
methods: {
Expand Down

0 comments on commit 5925ac4

Please sign in to comment.