20 lines
		
	
	
		
			579 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			579 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
| <script setup lang="ts">
 | |
| import {useRoute} from "vue-router";
 | |
| const route = useRoute()
 | |
| let {api} = await $fetch('/api/data/all')
 | |
| 
 | |
| </script>
 | |
| 
 | |
| <template>
 | |
|   <Title>热搜 {{route.params.WebName}} </Title>
 | |
|   <div style="display: flex;align-content: center;justify-content: center;flex-direction: column;flex-wrap: wrap;flex-direction: row">
 | |
|     <DataNewHot :from-web="route.params.WebName as string" :limit="25" />
 | |
|     <DataTimesTop :fromWeb="route.params.WebName as string" :limit="50" :hours="1" />
 | |
|   </div>
 | |
| </template>
 | |
| 
 | |
| <style scoped>
 | |
|   div *{
 | |
|     margin-right: 15px;
 | |
|   }
 | |
| </style> |