Home  >  Article  >  Web Front-end  >  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
coldplay.xixiOriginal
2020-12-09 14:11:3210308browse

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" //此处背景色与页面中一致
         }
 
     }  
 
}

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!

Statement:
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