CzRger 1 year ago
parent
commit
6836ef3002
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/views/staging/zbgly/center/card.vue

+ 4 - 4
src/views/staging/zbgly/center/card.vue

@@ -117,14 +117,14 @@ export default defineComponent({
               signOut: v.outTime,
               dailyStatus: v.dailyStatus,
               dailyTime: v.dailyTime,
-              dailyFiles: dailyUrl.map((v, i) => {
+              dailyFiles: v.dailyUrl ? dailyUrl.map((v, i) => {
                 return {label: v, value: dailyName?.[i] || v}
-              }),
+              }) : [],
               weeklyStatus: v.weekStatus,
               weeklyTime: v.weekTime,
-              weeklyFiles: weeklyUrl.map((v, i) => {
+              weeklyFiles: v.weekUrl ? weeklyUrl.map((v, i) => {
                 return {label: v, value: weeklyName?.[i] || v}
-              }),
+              }) : [],
             }
             state.data.push(obj)
           })