H4 Visa while working in India

I am working in India currently and applying for a H4 Visa with my wife’s company. My wife is working in US currently. I have mentioned my Indian employer details in DS160 form. I have no plans of resigning for my job. Do i need to resign/apply for long leave before i attend the interview or can i go ahead, attend the interview and then resign/apply for long leave after my visa gets approved.

You do not need to resign .Nor do you need long/short leave

If asked [which is unlikely] say that you will resign after getting the visa