You would have performed a temp solution that can last a few weeks or a couple years.
If the oil was missing you would feel the forks hitting the bottom and no pressure when pushing the suspension down.
When it start leaking again, be sure it will, I would advice you to do the whole lot, seals, dust covers, bushings and even the bottom bolts that hold the inner part at the bottom.
The bolts will get damaged fairly easily and for the sake of a few quid I would replace them.
The bushings will seem fine but they will be worn and contaminate the fork oil.
Obvious the oil will be changed when opening the forks.
Only care to have is the W value of the oil which will vary depending on the oil brand you will be using.
Adding to this, make sure the level is exactly the same on both forks.
It's a fairly easy job to do but proper messy if you're not careful.
Several YT clips showing you how to do it Delboy's garage being my preferred ones.