Browse Source

fix(selfManage): 分销商列表最近登录时间为空时显示-

避免 lastLoginTime 为空时 parseTime 输出无效值
LaveyD 6 days ago
parent
commit
2bd4f1faff
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/selfManage/thirdParty/index.vue

+ 1 - 1
src/views/selfManage/thirdParty/index.vue

@@ -133,7 +133,7 @@
             prop="lastLoginTime"
             label="最近登录"
             width="150">
-            <template slot-scope="{ row }">{{ parseTime(row.lastLoginTime) }}</template>
+            <template slot-scope="{ row }">{{ row.lastLoginTime ? parseTime(row.lastLoginTime) : '-' }}</template>
           </el-table-column>
           <el-table-column
             prop="remark"