We propose a novel micro-nano structure that can realize a photonic nanojet (PNJ) switch by adjusting the temperature, which is composed of a truncated cylinder coated with a thin vanadium dioxide (VO2) film. The influence of temperature on the maximum strength, full width at half maximum (FWHM), working distance, and focal length of the PNJ were studied by finite-difference time-domain (FDTD) method. The results demonstrate that the structure can adjust the open and close state of the PNJ by changing the temperature. A PNJ with varying characteristics can be obtained at both high and low temperatures, and the maximum intensity ratio of the PNJ can reach up to 7.25. This discovery provides a new way of optical manipulation, sensing and detection, microscopy imaging, optoelectronic devices, and other fields.