Summary: ``The many-body dynamics of an electron spin-1/2 qubit coupled to a bath of nuclear spins by hyperfine interactions, as described by the central spin model in two kinds of external field, are studied in this paper. In a completely polarized bath, we use the state recurrence method to obtain the exact solution of the $XXZ$ central spin model in a constant magnetic field and numerically analyze the influence of the disorder strength of the magnetic field on fidelity and entanglement entropy. For a constant magnetic field, the fidelity presents non-attenuating oscillations. The anisotropic parameter $\lambda$ and the magnetic field strength $B$ significantly affect the dynamic behaviour of the central spin. Unlike the periodic oscillation in the constant magnetic field, the decoherence dynamics of the central spin act like a damping oscillation in a disordered field, where the central spin undergoes a relaxation process and eventually reaches a stable state. The relaxation time of this process is affected by the disorder strength and the anisotropic parameter, where a larger anisotropic parameter or disorder strength can speed up the relaxation process. Compared with the constant magnetic field, the disordered field can regulate the decoherence over a large range, independent of the anisotropic parameter.''