zhouna %!s(int64=4) %!d(string=hai) anos
pai
achega
6675e67855
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      src/components/knowledgeExtra/RuleManager.vue

+ 3 - 3
src/components/knowledgeExtra/RuleManager.vue

@@ -104,10 +104,10 @@
                         prop="modifierName"
                         label="操作人">
                     <template slot-scope="scope">
-                        <el-tooltip v-if="scope.row.modifierName.length>8" class="item" effect="dark" :content="scope.row.modifierName" placement="top">
-                            <span>{{scope.row.modifierName.slice(0,8)+'...'}}</span>
+                        <el-tooltip v-if="scope.row.modifierName&&scope.row.modifierName.length>8" class="item" effect="dark" :content="scope.row.modifierName" placement="top">
+                            <span>{{(scope.row.modifierName||'').slice(0,8)+'...'}}</span>
                         </el-tooltip>
-                        <span v-if="scope.row.modifierName.length<9">{{scope.row.modifierName}}</span>
+                        <span v-if="scope.row.modifierName&&scope.row.modifierName.length<9">{{scope.row.modifierName}}</span>
                     </template>
                 </el-table-column>
                 <el-table-column