mirror of
				https://gitee.com/vant-contrib/vant.git
				synced 2025-10-27 01:32:10 +08:00 
			
		
		
		
	fix(@vant/markdown-loader): anchor not work
This commit is contained in:
		
							parent
							
								
									d26282e542
								
							
						
					
					
						commit
						27c7d839c0
					
				| @ -1,6 +1,6 @@ | ||||
| { | ||||
|   "name": "@vant/markdown-loader", | ||||
|   "version": "3.0.0", | ||||
|   "version": "3.0.1", | ||||
|   "description": "Simple and fast vue markdown loader", | ||||
|   "main": "src/index.js", | ||||
|   "publishConfig": { | ||||
|  | ||||
| @ -29,8 +29,10 @@ export default { | ||||
|     scrollToAnchor(event) { | ||||
|       if (event.target.id) { | ||||
|         this.$router.push({ | ||||
|           path: this.$route.path, | ||||
|           hash: event.target.id | ||||
|           name: this.$route.name, | ||||
|           query: { | ||||
|             anchor: event.target.id | ||||
|           } | ||||
|         }) | ||||
|       } | ||||
|     } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user