The proportional-resonant (PR) controller is a traditional tool for current control. Due to the phase jump at the resonance point, the PR controller cannot compensate for the current in the inductor-capacitor-inductor (LCL)-based active power filter (APF) in a precise manner. To solve the problem, this paper puts forward a vector-proportional-integral (VPI) current control strategy, which relies on the VPI controller to compensate for the harmonic current of the n-th order under the alpha-beta (α-β) stationary coordinate system. Through theoretical analysis and contrastive experiment, it is learned that the closed-loop transfer function of the VPI controller satisfies 0dB of amplitude-frequency at the resonance point, and controls the phase response at the resonance frequency at 0°. Hence, the VPI strategy can track the harmonic current with no error, and thus fully compensate for the harmonic current. The proposed control strategy improves the current compensation precision of APFs, and provides a reference for enhancing the power quality of the grid.