2. document.documentElement.dataset.theme

document.documentElement.dataset.theme = config.theme // system、ligh、dark
 
badge