In this Letter, we study the influence of magnetic mode dispersion on the performance of a metasurface cylindrical vector beam (CVB) generator. An optical field after a metasurface CVB generator can be manipulated by polarization-dependent transmittance arising from dual magnetic resonance of silicon nanopillars. A perfect CVB is only generated when the transmittances are equal for two orthogonal polarization. Two magnetic resonant wavelengths can be spatially separated because of the coherent superposition between the residual incident light and the generating CVB, which is potentially useful for a compact multiplex color router.