Fix bug
This commit is contained in:
		
							parent
							
								
									3cd3e19199
								
							
						
					
					
						commit
						91b89b79d2
					
				|  | @ -84,12 +84,11 @@ export default Vue.extend({ | |||
| 			(this as any).os.new(MkGameWindow); | ||||
| 		}, | ||||
| 
 | ||||
| 		goToTop(e: HTMLElement) { | ||||
| 			if (e.classList.contains('active')) | ||||
| 				window.scrollTo({ | ||||
| 					top: 0, | ||||
| 					behavior: 'smooth' | ||||
| 				}); | ||||
| 		goToTop() { | ||||
| 			window.scrollTo({ | ||||
| 				top: 0, | ||||
| 				behavior: 'smooth' | ||||
| 			}); | ||||
| 		} | ||||
| 	} | ||||
| }); | ||||
|  |  | |||
|  | @ -45,14 +45,7 @@ export default Vue.extend({ | |||
| 		XPost, | ||||
| 		XClock, | ||||
| 	}, | ||||
| 	methods: { | ||||
| 		goToTop() { | ||||
| 			window.scrollTo({ | ||||
| 				top: 0, | ||||
| 				behavior: 'smooth' | ||||
| 			}); | ||||
| 		} | ||||
| 	}, | ||||
| 
 | ||||
| 	mounted() { | ||||
| 		this.$store.commit('setUiHeaderHeight', 48); | ||||
| 
 | ||||
|  | @ -104,7 +97,16 @@ export default Vue.extend({ | |||
| 				}, 2500); | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| 	}, | ||||
| 
 | ||||
| 	methods: { | ||||
| 		goToTop() { | ||||
| 			window.scrollTo({ | ||||
| 				top: 0, | ||||
| 				behavior: 'smooth' | ||||
| 			}); | ||||
| 		} | ||||
| 	}, | ||||
| }); | ||||
| </script> | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue