瀏覽代碼

登录记录判空

marxjaw 2 月之前
父節點
當前提交
eed9929c1f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/views/main/userModule/userList.vue

+ 1 - 1
src/views/main/userModule/userList.vue

@@ -51,7 +51,7 @@
         <el-table-column prop="communicationOperator" label="通信运营商" width="130" />
         <el-table-column prop="loginRecordList" label="用户设备" width="200">
           <template #default="scope">
-            {{ scope.row.loginRecordList[0].deviceBrand }} {{ scope.row.loginRecordList[0].deviceModel }}
+            {{ scope.row.loginRecordList ? scope.row.loginRecordList[0].deviceBrand : '' }} {{ scope.row.loginRecordList?scope.row.loginRecordList[0].deviceModel:'' }}
           </template>
         </el-table-column>
         <el-table-column prop="deviceRepeatCount" label="设备重复数量" width="110" />