|
@@ -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)
|
|
|
})
|