The problem of time difference calculation of multiple time periods in vue


the problem now is that the time I calculate will be covered by the last time, and the need is that for several time periods, their jet lag needs to be added up. Please give me some advice

Apr.21,2022

in the first picture, the logic of vm.changeTimeOut in forEach in the workTimeOut function is replaced by the following.

so that's the problem.

Menu