uni-app去掉导航栏

Posted on 2023-04-07 18:12  猫头唔食鱼  阅读(106)  评论(0编辑  收藏  举报

在package.json中添加这句

"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
		{
			"path": "pages/index/index",
			"style": {
				"navigationBarTitleText": "uni-app",
				"navigationStyle":"custom" // 这里添加这句
			}
		}
	],