Bläddra i källkod

登录记录判空

marxjaw 2 månader sedan
förälder
incheckning
eed9929c1f
1 ändrade filer med 1 tillägg och 1 borttagningar
  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" />