Append a line below "window" in app.json
"navigationStyle": "custom"
The white background bar at the top of the mini program disappeared and became transparent, leaving only the capsule button in the upper right corner.
warn:
If the page has
<web-view src="{ {src}}" />
For this element, the background color of the top title bar will still appear~~