瀏覽代碼

feat: (staff) default avatar

gemercheung 3 年之前
父節點
當前提交
84a9a8c63d
共有 1 個文件被更改,包括 8 次插入1 次删除
  1. 8 1
      src/views/staff/list.vue

+ 8 - 1
src/views/staff/list.vue

@@ -25,7 +25,14 @@
         <Time :value="record.createTime" mode="datetime" />
         <Time :value="record.createTime" mode="datetime" />
       </template>
       </template>
       <template #head="{ record }">
       <template #head="{ record }">
-        <TableImg :size="120" :simpleShow="true" :imgList="[record.head]" />
+        <TableImg
+          :size="80"
+          :simpleShow="true"
+          :imgList="[
+            record.head ||
+              'http://zfb-4dkankan.oss-cn-shenzhen.aliyuncs.com/company/1545385566108_head.png',
+          ]"
+        />
       </template>
       </template>
       <!-- , -->
       <!-- , -->
       <template #action="{ record }">
       <template #action="{ record }">