fix(嵌入式): 数据集树进入新建数据集页面无法退出创建页面

This commit is contained in:
dataeaseShu 2024-07-19 16:13:20 +08:00
parent 640ce811cc
commit 525320ba12

View File

@ -222,11 +222,9 @@ const getDsName = (id: string) => {
}
const pushDataset = () => {
console.log('appStore.isDataEaseBi', appStore.isDataEaseBi)
if (appStore.isDataEaseBi) {
debugger
embeddedStore.clearState()
useEmitt().emitter.emit('changeCurrentComponent', 'DatasetEditor')
useEmitt().emitter.emit('changeCurrentComponent', 'Dataset')
return
}
const routeName = embeddedStore.getToken && appStore.getIsIframe ? 'dataset-embedded' : 'dataset'