unity 2021.2.7 UI BUG SpriteAtlas

When I create a gameobject and drag this object to the directory as a prefab, the picture will be lost.
Double-click to open the prefab, the picture can be displayed.
When dragging the prefab to the canvas, the picture is lost again.

Sounds like you need to set your Order In Layer for the Sprite Renderer to a higher number.