This study found that near work and sitting times were positively associated with myopia. Given the high prevalence of myopia and its implications for serious eye diseases, it is essential to implement measures to manage myopia. Considering the increased near work hours resulting from the COVID-19 pandemic, it is necessary to adopt supplementary measures, such as ensuring sufficient rest time for the eyes and adjusting the brightness of lights, to improve eye health.