src/views/components/building/index.vue
@@ -44,6 +44,17 @@ name: '' } }, watch: { 'value': function (v) { if (v) { getBuilding(v).then(response => { this.name = response.data.name; }); }else { this.name = ''; } } }, created() { if (this.value) { getBuilding(this.value).then(response => {