Home > Web Front-end > uni-app > What should I do if a white screen appears when the uniapp page jumps?

What should I do if a white screen appears when the uniapp page jumps?

coldplay.xixi
Release: 2023-01-13 00:44:15
Original
10401 people have browsed it

Solution to the white screen when uniapp page jumps: Set the background color of the page in the project [pages.json] to be consistent with the background color of the page or container in the page, the code is ["background": "#ededed"].

What should I do if a white screen appears when the uniapp page jumps?

The operating environment of this tutorial: windows7 system, uni-app2.5.1 version, Dell G3 computer.

Recommendation (free): uni-app development tutorial

uniapp page jumps and a white screen appears Solution:

Set the background color of the page in the project pages.json to be consistent with the background color of the page or container in the page to solve this problem.

{  
 
    "path": "pages/ecosystem/index",  
 
    "style": {  
 
        "navigationBarTitleText": "生态",  
 
        "app-plus": {  
 
            "background":"#ededed" //此处背景色与页面中一致
         }
 
     }  
 
}
Copy after login

Related free learning recommendations: Programming Video

The above is the detailed content of What should I do if a white screen appears when the uniapp page jumps?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template