forked from github/dataease
feat(数据源): 增加api数据源复制功能
This commit is contained in:
parent
9c4b0b71b8
commit
66f1289910
@ -716,6 +716,11 @@ const handleCopy = async data => {
|
||||
})
|
||||
datasource.id = ''
|
||||
datasource.name = '复制数据源'
|
||||
if (datasource.type === 'API') {
|
||||
for (let i = 0; i < datasource.apiConfiguration.length; i++) {
|
||||
datasource.apiConfiguration[i].deTableName = ''
|
||||
}
|
||||
}
|
||||
datasourceEditor.value.init(datasource)
|
||||
})
|
||||
}
|
||||
@ -1003,7 +1008,7 @@ const getMenuList = (val: boolean) => {
|
||||
@handle-command="
|
||||
cmd => operation(cmd, data, data.leaf ? 'datasource' : 'folder')
|
||||
"
|
||||
:menu-list="getMenuList(!['Excel', 'API'].includes(data.type) && data.leaf)"
|
||||
:menu-list="getMenuList(!['Excel'].includes(data.type) && data.leaf)"
|
||||
></handle-more>
|
||||
</div>
|
||||
</span>
|
||||
|
Loading…
Reference in New Issue
Block a user