fix: 修复内置知识库更新记录有时候会缺少user列的问题

This commit is contained in:
chenjinsong
2023-11-01 10:30:36 +08:00
parent 696b03ad40
commit b94dba9ed3

View File

@@ -150,7 +150,7 @@
<span>{{scope.row.opTime ? dateFormatByAppearance(scope.row.opTime) : '-'}}</span> <span>{{scope.row.opTime ? dateFormatByAppearance(scope.row.opTime) : '-'}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="user" :label="$t('knowledgeBase.operator')" width="150" v-if="activeTab === 'updateRecord'"> <el-table-column prop="user" :label="$t('knowledgeBase.operator')" width="150" v-if="updateKnowledge.source !== 'cn_psiphon3_ip' || activeTab === 'updateRecord'">
<template #default="scope" :column="item"> <template #default="scope" :column="item">
<span>{{$_.get(scope.row, 'user.name', '-')}}</span> <span>{{$_.get(scope.row, 'user.name', '-')}}</span>
</template> </template>