Browse Source

判断修改

wyq 4 years ago
parent
commit
a3465fb23a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/components/knowledgeExtra/TermSet.vue

+ 2 - 2
src/components/knowledgeExtra/TermSet.vue

@@ -45,7 +45,7 @@
         <el-table-column prop="collectionRemark" label="说明">
           <template slot-scope="scope">
             <el-tooltip
-              v-if="scope.row.collectionRemark.length>80"
+              v-if="scope.row.collectionRemark && scope.row.collectionRemark.length>80"
               class="item"
               effect="dark"
               :content="scope.row.collectionRemark"
@@ -53,7 +53,7 @@
             >
               <span>{{scope.row.collectionRemark.slice(0,80)+'...'}}</span>
             </el-tooltip>
-            <span v-if="scope.row.collectionRemark.length<81">{{scope.row.collectionRemark}}</span>
+            <span v-if="scope.row.collectionRemark && scope.row.collectionRemark.length<81">{{scope.row.collectionRemark}}</span>
           </template>
         </el-table-column>
         <el-table-column prop="concatConceptLibName" label="基础术语名称" width="500">