mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-25 14:34:46 +00:00
Merge pull request #2926 from jumpserver/pr@dev@perf_table_export_mfa
perf: 优化列表导出mfa验证弹窗逻辑
This commit is contained in:
@@ -159,8 +159,7 @@ export default {
|
||||
},
|
||||
mounted() {
|
||||
this.$eventBus.$on('showExportDialog', ({ selectedRows, url, name }) => {
|
||||
// Todo: 没有时间了,只能先这么处理了
|
||||
if (url === this.url || url.indexOf(this.url) > -1 || url.indexOf('account') > -1) {
|
||||
if (url === this.url || url.indexOf(this.url) > -1) {
|
||||
this.showExportDialog()
|
||||
}
|
||||
})
|
||||
|
||||
@@ -37,7 +37,8 @@ export default {
|
||||
handleExportClick: {
|
||||
type: Function,
|
||||
default: function({ selectedRows }) {
|
||||
this.$eventBus.$emit('showExportDialog', { selectedRows, url: this.tableUrl, name: this.name })
|
||||
const option = assignIfNot(this.exportOptions, { url: this.tableUrl })
|
||||
this.$eventBus.$emit('showExportDialog', { selectedRows, url: option.url, name: this.name })
|
||||
}
|
||||
},
|
||||
hasImport: defaultTrue,
|
||||
|
||||
Reference in New Issue
Block a user