In sixth generation (6G) communications, terahertz (THz) communication is one of the most important technologies in the future due to its ultra-bandwidth, where hybrid beamforming has been widely used to solve the severe transmission attenuation in the THz band. However, the use of frequency-flat phase shifters in hybrid beamforming leads to the beam split effect. To solve the beam split influence, we propose a novel optical true time delay compensation network (OTTDCN)-based phase precoding structure with low power consumption. In the proposed scheme, the OTTDCN pre-generates multiple beam compensation modes to achieve phase compensation for different frequencies. As a result, the compensated beams can be reoriented toward the target direction at different frequencies. Moreover, a low-complexity beam compensation mode-based hybrid precoding algorithm is proposed, where the selection of the optimal beam compensation modes used for all radio-frequency (RF) chains with finite beam compensation modes is considered. The results show that the OTTDCN-based phase precoding scheme can effectively alleviate the beam split effect with low power consumption and achieve near-optimal performance.