uni-app removes top navigation

How to remove the top navigation in uni-app
How to remove the top navigation in uniapp

How to remove the top navigation in uniapp:
1. Remove all navigation bars;
2. Remove the top navigation bar from a single page.



image.png

How to remove top navigation in uniapp:

1. Remove all navigation bars

    "globalStyle": {
        "navigationBarTextStyle": "black",
        "navigationBarTitleText": "uni-app",
        "navigationBarBackgroundColor": "#F8F8F8",
        "navigationStyle": "custom",
        "app-plus": {
            "titleNView": false
        }
    },

image.png

2. Remove the top navigation bar from a single page

Configure in pages.json:

, {
      "path": "pages/ldy_home/ldy_home",
      "style": {
        "navigationBarTitleText": "",
        "enablePullDownRefresh": false,
        "navigationStyle": "custom",
        "app-plus": {
          "titleNView": false
        }
      }
    }, 

Guess you like

Origin blog.csdn.net/jun_tong/article/details/133157443