forked from github/dataease
fix(数据集): 新建数据集错误
This commit is contained in:
parent
c4604a558e
commit
9841b7d72c
@ -585,9 +585,11 @@ const getTableName = async (datasourceId, tableName) => {
|
|||||||
const initEdite = async () => {
|
const initEdite = async () => {
|
||||||
const { id, datasourceId, tableName } = route.query
|
const { id, datasourceId, tableName } = route.query
|
||||||
const { id: copyId } = route.params
|
const { id: copyId } = route.params
|
||||||
const barRes = await barInfoApi(copyId || id)
|
if (copyId || id) {
|
||||||
if (!barRes || !barRes['id']) {
|
const barRes = await barInfoApi(copyId || id)
|
||||||
return
|
if (!barRes || !barRes['id']) {
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (datasourceId) {
|
if (datasourceId) {
|
||||||
dataSource.value = datasourceId as string
|
dataSource.value = datasourceId as string
|
||||||
|
Loading…
Reference in New Issue
Block a user