solve nav active bug

This commit is contained in:
2023-12-21 00:43:43 +08:00
parent c0a044355b
commit 89aa365af9
8 changed files with 50 additions and 61 deletions

View File

@@ -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>