forked from github/dataease
Merge pull request #9130 from dataease/pr@dev-v2@fix_dataset_form
fix(数据集): 新建数据集错误
This commit is contained in:
commit
8fc889f5d4
@ -585,10 +585,12 @@ const getTableName = async (datasourceId, tableName) => {
|
||||
const initEdite = async () => {
|
||||
const { id, datasourceId, tableName } = route.query
|
||||
const { id: copyId } = route.params
|
||||
if (copyId || id) {
|
||||
const barRes = await barInfoApi(copyId || id)
|
||||
if (!barRes || !barRes['id']) {
|
||||
return
|
||||
}
|
||||
}
|
||||
if (datasourceId) {
|
||||
dataSource.value = datasourceId as string
|
||||
getTableName(datasourceId as string, tableName)
|
||||
|
Loading…
Reference in New Issue
Block a user