In this paper,the inverse problem of a class of Dirac operators with jump conditions and complex-valued weight functions is studied.The spectral mapping method is used to obtain that the potential function of Dirac operators with two discontinuities can be uniquely determined by two groups of spectra or Weyl-type functions on the whole interval.