@johnabs bro - I agree with @Pat but another alternative would be to train her like so:
- leave for 20 seconds (I.e close the door even if she starts crying)
- come back and pet + play with her (reward)
- leave for 40 seconds
- come back and pet + play with her (reward)
- leave for 60 seconds
- come back and pet + play with her (reward)
- leave for 2 minutes
- come back and pet + play with her + food
- leave for 3 minutes
- come back and pet + play with her + food
- leave for 5 minutes
- come back and pet + play with her + food
- leave for 10 minutes
- come back and pet + play with her + food
...
Until you get to a point where she can go hours (this might take several days) of being able to be alone in a room. Additionally, it's normal for young pups to occasionally cry when you leave. Last I had one when I was a teen he cried the first three days when I had to go to school. Afterwards he got used to me leaving in the mornings.