This is an automated email from the ASF dual-hosted git repository. xxyu pushed a commit to branch kylin5_beta in repository https://gitbox.apache.org/repos/asf/kylin.git
commit 4a9c48fa50c5024a87c1f58b1493e4c0def8b267 Author: Qian Xia <lauraxiaq...@gmail.com> AuthorDate: Fri Jul 21 11:02:41 2023 +0800 KYLIN-5665 fix give up model edit route --- .../studio/StudioModel/ModelList/ModelLayout/modelLayout.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kystudio/src/components/studio/StudioModel/ModelList/ModelLayout/modelLayout.vue b/kystudio/src/components/studio/StudioModel/ModelList/ModelLayout/modelLayout.vue index 438e62f9d1..a5c09d6822 100644 --- a/kystudio/src/components/studio/StudioModel/ModelList/ModelLayout/modelLayout.vue +++ b/kystudio/src/components/studio/StudioModel/ModelList/ModelLayout/modelLayout.vue @@ -315,8 +315,11 @@ export default class ModelLayout extends Vue { const { value } = await handleSuccessAsync(response) if (value.length) { this.currentModelRow = {...this.currentModelRow, ...value[0]} + if (!this.modelList.filter(it => it.alias === this.modelName).length) { + // 没有匹配到相应的 model + this.jumpBack() + } } else { - // 没有匹配到相应的 model this.$router.replace({ name: 'ModelList', params: {searchModelName: this.searchModelName} }) } }