X-ray detection and imaging are widely used in medical diagnosis, product inspection, security monitoring, etc. Large-scale polycrystalline perovskite thick films possess high potential for direct X-ray imaging. However, the notorious problems of baseline drift and high detection limit caused by ions migration are still remained. Here, ion migration is reduced by incorporating 2D perovskite into 3D perovskite, thereby increasing the ion activation energy. This approach hinders ion migration within the perovskite film, consequently suppressing baseline drift and reducing the lowest detection limit(LOD) of the device. As a result, the baseline drifting declines by 20 times and the LOD reduces to 21.1nGys-1, while the device maintains a satisfactory sensitivity of 5.6×103µCGy-1cm-2. This work provides a new strategy to achieve low ion migration in large-scale X-ray detectors and may provide new thoughts for the application of mixed-dimension perovskite.