Browse Source

查看表单报错修改

duy 2 years ago
parent
commit
18b123034f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/manager/wbsinfo/edit.vue

+ 1 - 1
src/views/manager/wbsinfo/edit.vue

@@ -2159,7 +2159,7 @@ export default {
 
 
     updateNodeTable () {
     updateNodeTable () {
       selectByNodeTable(this.curTreeData.id).then((res) => {
       selectByNodeTable(this.curTreeData.id).then((res) => {
-        if (res.data.data.length) {
+        if (res.data.data&&res.data.data.length) {
           this.formData = res.data.data;
           this.formData = res.data.data;
         } else {
         } else {
           this.formData = [];
           this.formData = [];