mirror of
https://github.com/dataease/dataease.git
synced 2026-05-16 05:50:45 +08:00
fix(嵌入式): 嵌入式数据集iframe模块嵌入,保存数据集-返回的时候,能保存成功但是会报错400
This commit is contained in:
@@ -260,19 +260,13 @@ const getDsName = (id: string) => {
|
||||
|
||||
const pushDataset = () => {
|
||||
wsCache.set(`dataset-info-id`, nodeInfo.id)
|
||||
console.log(
|
||||
'appStore.isDataEaseBi',
|
||||
appStore.isDataEaseBi,
|
||||
appStore.getIsIframe,
|
||||
embeddedStore.getToken
|
||||
)
|
||||
if (appStore.isDataEaseBi) {
|
||||
embeddedStore.clearState()
|
||||
useEmitt().emitter.emit('changeCurrentComponent', 'Dataset')
|
||||
return
|
||||
}
|
||||
const routeName = embeddedStore.getToken && appStore.getIsIframe ? 'dataset-embedded' : 'dataset'
|
||||
if (!!history.state.back || !appStore.getIsIframe) {
|
||||
if (!!history.state.back && !appStore.getIsIframe) {
|
||||
history.back()
|
||||
} else {
|
||||
push({
|
||||
|
||||
Reference in New Issue
Block a user