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