[Core] [DataSet] Fixed issue of jumping to the report list after publishing a report

This commit is contained in:
qianmoQ 2024-03-12 00:49:47 +08:00
parent 9036e772a4
commit 899ff45752

View File

@ -342,6 +342,7 @@ import DatasetVisualConfigurePie from "@/views/admin/dataset/components/adhoc/Da
import DatasetVisualConfigureHistogram from "@/views/admin/dataset/components/adhoc/DatasetVisualConfigureHistogram.vue";
import DatasetVisualConfigureWordCloud from "@/views/admin/dataset/components/adhoc/DatasetVisualConfigureWordCloud.vue";
import {cloneDeep} from 'lodash';
import router from "@/router";
export default {
name: 'DatasetAdhoc',
@ -545,6 +546,7 @@ export default {
if (response.status) {
this.$Message.success(this.$t('report.publishSuccess').replace('REPLACE_NAME', this.formState.name))
this.formState.visible = false
router.push('/admin/report')
}
})
.finally(() => this.published = false)