From b05640960d38a08def00a44b44aa11ef216f911f Mon Sep 17 00:00:00 2001 From: liuchengxin <13104445455@163.com> Date: 星期二, 17 五月 2022 16:13:09 +0800 Subject: [PATCH] 样式修改 --- src/views/components/nvr/index.vue | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/src/views/components/nvr/index.vue b/src/views/components/nvr/index.vue index 783c5c7..33e1b60 100644 --- a/src/views/components/nvr/index.vue +++ b/src/views/components/nvr/index.vue @@ -45,6 +45,17 @@ name: '' } }, + watch: { + 'value': function (v) { + if (v) { + getNvr(v).then(response => { + this.name = response.data.deploymentName; + }); + }else { + this.name = ''; + } + } + }, created() { if (this.value) { getNvr(this.value).then(response => { -- Gitblit v1.9.1