The output voltage of inverters is influenced by nonlinear factors such as dead time and voltage drops, injecting low-order harmonics. This results in fifth and seventh harmonic distortions in the stator current, causing periodic torque ripples and significantly affecting the control precision of Permanent Magnet Synchronous Motors (PMSMs). To address this issue, this paper proposes a control strategy named quasi-proportional-resonant sliding mode control (QPR-SMC). Initially, sliding mode control is employed as the current controller to enhance disturbance rejection capability and provide a rapid dynamic response. Subsequently, a quasi-proportional-resonant controller is introduced to extract the sixth harmonic component from the current, which is then used as a compensation term for the sliding mode control surface. Finally, the current tracking error and the compensation term are combined as inputs to the sliding mode control law, forming a current error-proportional resonant-sliding mode control surface. This approach enhances the harmonic suppression capability of the system. The results demonstrate that the proposed method effectively reduces the fifth and seventh harmonic components in the three-phase current and mitigates motor jitter by suppressing the sixth harmonic in the d–q coordinate system.