fix(数据源): 数据源详情页的新建数据集按钮,进入到数据集编辑页,点击左上角返回按钮或右上角保存并返回按钮,返回的是数据集列表页,而不是数据源详情页
This commit is contained in:
parent
64deadd284
commit
e7e202de84
@ -132,6 +132,7 @@ const createDataset = (tableName?: string) => {
|
|||||||
useEmitt().emitter.emit('changeCurrentComponent', 'DatasetEditor')
|
useEmitt().emitter.emit('changeCurrentComponent', 'DatasetEditor')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
wsCache.set('ds-info-id', nodeInfo.id)
|
||||||
router.push({
|
router.push({
|
||||||
path: '/dataset-form',
|
path: '/dataset-form',
|
||||||
query: {
|
query: {
|
||||||
@ -989,7 +990,9 @@ const loadInit = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
nodeInfo.id = (route.params.id as string) || (route.query.id as string) || ''
|
const dsId = wsCache.get('ds-info-id') || route.params.id
|
||||||
|
nodeInfo.id = (dsId as string) || (route.query.id as string) || ''
|
||||||
|
wsCache.delete('ds-info-id')
|
||||||
loadInit()
|
loadInit()
|
||||||
listDs()
|
listDs()
|
||||||
const { opt } = router.currentRoute.value.query
|
const { opt } = router.currentRoute.value.query
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user