solve nav active bug
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
|
||||
|
||||
<template>
|
||||
<div>
|
||||
666
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import {getHotNews} from '@/api/api'
|
||||
export default {
|
||||
name: "HotNews",
|
||||
components: {},
|
||||
@@ -13,13 +12,19 @@ export default {
|
||||
return {}
|
||||
},
|
||||
mounted() {
|
||||
|
||||
this.getNews();
|
||||
},
|
||||
created() {
|
||||
|
||||
},
|
||||
computed: {},
|
||||
methods: {}
|
||||
methods: {
|
||||
getNews(){
|
||||
getHotNews().then(response=>{
|
||||
console.log(response);
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style scoped>
|
||||
|
Reference in New Issue
Block a user