32 lines
401 B
Vue
32 lines
401 B
Vue
<template>
|
|
<div>
|
|
666
|
|
</div>
|
|
</template>
|
|
<script>
|
|
import {getHotNews} from '@/api/api'
|
|
export default {
|
|
name: "HotNews",
|
|
components: {},
|
|
data() {
|
|
return {}
|
|
},
|
|
mounted() {
|
|
this.getNews();
|
|
},
|
|
created() {
|
|
|
|
},
|
|
computed: {},
|
|
methods: {
|
|
getNews(){
|
|
getHotNews().then(response=>{
|
|
console.log(response);
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
<style scoped>
|
|
|
|
</style> |