If you didn’t move the computer suddenly while it was on, the HD may be OK, it’s in a sort-of-sealed case.
I spilled a beer onto my laptop a few years ago while it was on, and immediately lifted it upside-down to let the beer drain ... but that sudden movement destroyed the spinning HD and I lost everything
But I learned 2 valuable lessons from it - backup regularly (expect failure!!), and keep drinks the hell away from your computer
I would have been happier if it had been an adult beverage.