仪表盘增加自动刷新
This commit is contained in:
huoji
2022-09-21 20:08:38 +08:00
parent e1fb23c112
commit 011496349a
7 changed files with 7 additions and 4 deletions

View File

@@ -184,6 +184,9 @@ export default defineComponent({
},
mounted () {
this.get_threatStatistics()
setInterval(() => {
this.get_threatStatistics()
}, 10000)
}
})
</script>

View File

@@ -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') }
]
},
{