Fat-soluble vitamins (A D E K) are best taken with food, some others ( C) can be taken alone.
If you have a reasonable amount of fat in you body, the fat-soluble vitamin stores are more than enough for a few days of fasting.
What we can’t store are electrolytes, the rest can wait.