feat: allow running elk with a single server (#1606)
This commit is contained in:
parent
61428cd9cd
commit
53d0812efd
22 changed files with 232 additions and 79 deletions
|
@ -1,6 +1,6 @@
|
|||
<script setup lang="ts">
|
||||
definePageMeta({
|
||||
key: route => `${route.params.server}:${route.params.account}`,
|
||||
key: route => `${route.params.server ?? currentServer.value}:${route.params.account}`,
|
||||
})
|
||||
|
||||
const params = useRoute().params
|
||||
|
|
|
@ -5,11 +5,11 @@ definePageMeta({
|
|||
middleware: 'auth',
|
||||
})
|
||||
|
||||
const list = $computed(() => useRoute().params.list as string)
|
||||
const server = $computed(() => useRoute().params.server as string)
|
||||
|
||||
const { t } = useI18n()
|
||||
const route = useRoute()
|
||||
const { t } = useI18n()
|
||||
|
||||
const list = $computed(() => route.params.list as string)
|
||||
const server = $computed(() => (route.params.server ?? currentServer.value) as string)
|
||||
|
||||
const tabs = $computed<CommonRouteTabOption[]>(() => [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue