Covalent organic frameworks are crystalline porous materials with great application potential in heterogeneous catalysis. We synthesized a new functional covalent organic framework, COF-FL-2, using derivatives of electron-deficient naphthalene diimide(NDI) as monomers. COF-FL-2 has a large pore size and good adsorption performance. The NDI structure on the skeleton can form a stable functional composite with polyoxometalates through π-anion interaction. A novel hybrid heteropolyacid complex, PTA@COF-FL-2, was prepared by loading phosphotungstic acid(PTA) on COF-FL-2. Remarkably, PTA@COF-FL-2 shows high catalytic activity for the epoxidation of olefins with t-BuOOH as the oxidant, and can epoxidate cyclooctene and 1-octene into the corresponding epoxides under mild conditions. PTA@COF-FL-2 can be used for a long time under reaction conditions, and there is no PTA leaching phenomenon when used. In addition, PTA@COF-FL-2 is very convenient to recycle and can be recycled many times.