diff --git a/frontend/src/views/dataset/add/AddCustom.vue b/frontend/src/views/dataset/add/AddCustom.vue index 2a8fc2a3d9..6ba3524230 100644 --- a/frontend/src/views/dataset/add/AddCustom.vue +++ b/frontend/src/views/dataset/add/AddCustom.vue @@ -213,8 +213,12 @@ export default { }, cancel() { - this.dataReset() - this.$emit('switchComponent', { name: '' }) + // this.dataReset() + if (this.param.tableId) { + this.$emit('switchComponent', { name: 'ViewTable', param: this.param.tableId }) + } else { + this.$emit('switchComponent', { name: '' }) + } }, dataReset() {