check in settings whether wifi is allowed to stay on when the pc goes to sleep - it should be in battery or sleep settings
If you need additional help or have more questions or details to share, please join the site so you can reply in this thread. See this link for instructions on how to join Windows Central.