From e8d9f5c2ddd01ed715c8985b0aa6b5d6e958e622 Mon Sep 17 00:00:00 2001 From: break60 <790061044@qq.com> Date: Fri, 5 Jun 2020 11:52:33 +0800 Subject: [PATCH] Fixed selection of tenant value and defalut changed to lower case --- .../src/js/conf/home/pages/dag/_source/udp/udp.vue | 9 +++++---- .../src/js/conf/home/store/security/actions.js | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/udp/udp.vue b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/udp/udp.vue index cfbf5de01d..b9610cbc7b 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/udp/udp.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/udp/udp.vue @@ -205,12 +205,13 @@ this.syncDefine = dag.syncDefine this.timeout = dag.timeout || 0 this.checkedTimeout = this.timeout !== 0 - - if (dag.tenantId === -1) { + this.$nextTick(() => { + if (dag.tenantId === -1) { this.tenantId = this.store.state.user.userInfo.tenantId - } else { + } else { this.tenantId = dag.tenantId - } + } + }) }, mounted () {}, diff --git a/dolphinscheduler-ui/src/js/conf/home/store/security/actions.js b/dolphinscheduler-ui/src/js/conf/home/store/security/actions.js index 94e8a69605..d1d23897f3 100644 --- a/dolphinscheduler-ui/src/js/conf/home/store/security/actions.js +++ b/dolphinscheduler-ui/src/js/conf/home/store/security/actions.js @@ -282,7 +282,7 @@ export default { const list = res.data list.unshift({ id: -1, - tenantName: 'Default' + tenantName: 'default' }) state.tenantAllList = list resolve(list)