github
仪表盘增加自动刷新
This commit is contained in:
@@ -184,6 +184,9 @@ export default defineComponent({
|
||||
},
|
||||
mounted () {
|
||||
this.get_threatStatistics()
|
||||
setInterval(() => {
|
||||
this.get_threatStatistics()
|
||||
}, 10000)
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
@@ -4,7 +4,7 @@ const routes = [
|
||||
path: '/',
|
||||
component: () => import('layouts/MainLayout.vue'),
|
||||
children: [
|
||||
{ path: '', component: () => import('pages/Index.vue') }
|
||||
{ path: '', component: () => import('pages/Dashboard.vue') }
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user