CodePudding user response:
Check your system logs, see Mac when you sleep in what to do, I also encountered a similar situation before, found that is a question of Chrome, you can look at my blog https://blog.csdn.net/wangdong20/article/details/105597851