Traditional Chinese medicine tablets are very common in clinical application, and the market demand is large. Traditional Chinese medicine tablets are the most common dosage forms of traditional Chinese medicine. Its advantages are convenient and safe to take, easy to carry, accurate dose, and stable quality. In the production process of solid preparations of traditional Chinese medicine, due to the complexity of the components of traditional Chinese medicine, strict verification is needed to improve the quality control of the process to support the continuous and stable production of traditional Chinese medicine preparations. If the process technology is not mature, it will bring many unstable factors to the production of solid preparations of traditional Chinese medicine, such as tablet loosening, cracking, disintegration and so on. In order to improve the quality of traditional Chinese medicine tablets and ensure the smooth progress of production, in view of the common quality problems in the production of traditional Chinese medicine tablets, this paper designs near-infrared spectroscopy monitoring to improve the quality of traditional Chinese medicine tablets.