2022-09-15 10:44:43 +08:00
|
|
|
<template>
|
2022-09-16 18:53:45 +08:00
|
|
|
<div>
|
2023-01-31 23:28:37 +08:00
|
|
|
<RouterButton :buttons="buttons" />
|
|
|
|
<LayoutContent>
|
|
|
|
<router-view></router-view>
|
|
|
|
</LayoutContent>
|
2022-09-15 10:44:43 +08:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
2023-01-31 23:28:37 +08:00
|
|
|
import i18n from '@/lang';
|
|
|
|
import LayoutContent from '@/layout/layout-content.vue';
|
|
|
|
import RouterButton from '@/components/router-button/index.vue';
|
2022-09-15 10:44:43 +08:00
|
|
|
|
2023-01-31 23:28:37 +08:00
|
|
|
const buttons = [
|
|
|
|
{
|
|
|
|
label: i18n.global.t('setting.panel'),
|
|
|
|
path: '/settings/panel',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: i18n.global.t('setting.safe'),
|
|
|
|
path: '/settings/safe',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: i18n.global.t('setting.backupAccount'),
|
|
|
|
path: '/settings/backupaccount',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: i18n.global.t('setting.monitor'),
|
|
|
|
path: '/settings/monitor',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: i18n.global.t('setting.snapshot'),
|
|
|
|
path: '/settings/snapshot',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: i18n.global.t('setting.about'),
|
|
|
|
path: '/settings/about',
|
|
|
|
},
|
|
|
|
];
|
2022-09-15 10:44:43 +08:00
|
|
|
</script>
|