From 863132ab2bcb0aaec8f411b2e0ce0bade20a5eb2 Mon Sep 17 00:00:00 2001 From: xuyiming Date: Fri, 17 Jul 2020 10:07:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=94=E7=94=A8=E6=9E=84=E5=BB=BA=E7=BB=84?= =?UTF-8?q?=E7=BB=87=E4=B8=8D=E5=8F=AF=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/workbench/app_build.vue | 32 ++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/src/pages/workbench/app_build.vue b/src/pages/workbench/app_build.vue index d21e745..b22392a 100644 --- a/src/pages/workbench/app_build.vue +++ b/src/pages/workbench/app_build.vue @@ -72,7 +72,11 @@ > - + { this.orgs = response.data.data; }) .catch((error) => { console.log(error); - }); + }); */ + + this.$api.user.getNowUser().then(({ data }) => { + if (data.success == 1) { + this.orgs = [ + { + id: data.data.department_id, + name: data.data.department_name, + }, + ]; + this.app_info.org = data.data.department_id; + } else { + console.log(data.errMsg); + } + }); }, getNewList(file) { this.app_info.logo = file[0].url; @@ -649,14 +667,6 @@ export default { this.getTypes(); this.getOrgs(); - this.$api.user.getNowUser().then(({ data }) => { - if (data.success == 1) { - this.app_info.org = data.data.department_id; - } else { - console.log(data.errMsg); - } - }); - this.image_headers = [ { label: "镜像名称", -- 2.26.0