Browse Source

更新数据失败提示

zhouna 4 years ago
parent
commit
1b01671b85
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/components/knowledgeExtra/DiagBase.vue

+ 2 - 0
src/components/knowledgeExtra/DiagBase.vue

@@ -346,6 +346,8 @@
                     if (res.data.code == '0') {
                         this.warning('更新成功','success');
                         this.getDataList();
+                    }else{
+                        this.warning(res.data.msg||'更新失败,请重试');
                     }
                 }).catch((error) => {
                     loading.close();