Home  >  Article  >  Web Front-end  >  How to remove the top back button in uniapp

How to remove the top back button in uniapp

藏色散人
藏色散人Original
2021-01-18 14:22:4911395browse

Uniapp method to remove the top return button: first find the pages.json file in the project root directory; then find the object in the pages array to delete the return button at the top bar of the page; finally add "" under the object style autoBackButton ":false" can be used.

How to remove the top back button in uniapp

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

Recommended (free): uni-app tutorial

Delete the default return button on the top title bar of uni-app

1. Find the pages.json file in the project root directory

2. Find the object in the pages array where you want to delete the return key of the top bar of the page

3. In the object Add

"app-plus": {  //uni-app项目对应节点名称为"app-plus"
	 "titleNView": {  
		 "autoBackButton":false
		 }	
  }

under style

The above is the detailed content of How to remove the top back button in uniapp. 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