Daughter's junior high school is the most important growth stage for children. You may have lost your mind, so you hit her. For your daughter, it's really abnormal that you don't hit her at ordinary times, which will definitely make her feel bad.
Then as a mother, my advice is that you apologize to your daughter and take the initiative to communicate with her. Communication is an effective way of mother-daughter relationship.