The covalent organic framework (COF-1) containing triazine group was prepared by solvothermal method, and its structure and morphology were characterized by XRD, BET, FIRT, SEM, TEM, etc. COF-1 was used for the modification of glassy carbon electrodes and subsequently for the detection of dopamine. The experimental results showed that the COF-1 sensor has excellent selectivity, stability, and repeatability for dopamine under optimal conditions. The modified sensor has a good linear relationship to dopamine in the range of 1 to 500 μM with a detection limit of 0.5 μM (S/N = 3). The results show that the electrode reaction process of dopamine on the modified electrode is an adsorption controlled process, and some parameters of the electrochemical process, such as the electron transfer coefficient (αks), the number of transferred electrons (n), and the apparent heterogeneous electron transfer Reaction rate constant αks, has also been calculated.