In the civil service examination, only special positions generally require eyesight, while the eyesight examination is only carried out during the physical examination, that is, after the interview, so it should be no problem for you to have a laser operation after the written examination.
If in doubt, please consult the public education enterprises in China.