From 2546d2a6251176b0214c2d23ac93ccde5dd008f5 Mon Sep 17 00:00:00 2001 From: 唐耀东 <18861537@qq.com> Date: 星期四, 12 五月 2022 10:51:01 +0800 Subject: [PATCH] 提交代码 --- src/views/components/organization/index.vue | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/src/views/components/organization/index.vue b/src/views/components/organization/index.vue index 0f60b08..fce9fc3 100644 --- a/src/views/components/organization/index.vue +++ b/src/views/components/organization/index.vue @@ -44,6 +44,17 @@ name: '' } }, + watch: { + 'value': function (v) { + if (v) { + getOrganization(v).then(response => { + this.name = response.data.name; + }); + }else { + this.name = ''; + } + } + }, created() { if (this.value) { getOrganization(this.value).then(response => { -- Gitblit v1.9.1