Abstract Background Liver injuries have been reported in patients with coronavirus disease 2019 (COVID-19). This study aimed to investigate the clinical role played by severe acute respiratory syndrome coronavirus 2 (SARS-CoV-2). Methods In this multicentre, retrospective study, the parameters of liver function tests in COVID-19 inpatients were compared between various time-points in reference to SARS-CoV-2 shedding, and 3 to 7 days before the first detection of viral shedding was regarded as the reference baseline. Results In total, 70 COVID-19 inpatients were enrolled. Twenty-two (31.4%) patients had a self-medication history after illness. At baseline, 10 (14.3%), 7 (10%), 9 (12.9%), 2 (2.9%), 15 (21.4%), and 4 (5.7%) patients already had abnormal alanine aminotransferase (ALT), aspartate aminotransferase (AST), gamma-glutamyl transferase (GGT), alkaline phosphatase (ALP), albumin, and total bilirubin (TBIL) values, respectively. ALT and AST abnormal rates and levels did not show any significant dynamic changes during the full period of viral shedding (all p > 0.05). The GGT abnormal rate (p = 0.008) and level (p = 0.033) significantly increased on day 10 of viral shedding. Meanwhile, no simultaneous significant increases in abnormal ALP rates and levels were observed. TBIL abnormal rates and levels significantly increased on days 1 and 5 of viral shedding (all p