feat: prevent mixing data on account switch (#384)
This commit is contained in:
parent
8c82c91056
commit
de160c219a
5 changed files with 42 additions and 26 deletions
|
@ -4,6 +4,7 @@ import type { ComponentPublicInstance } from 'vue'
|
|||
|
||||
definePageMeta({
|
||||
name: 'status',
|
||||
key: route => route.path,
|
||||
})
|
||||
|
||||
const route = useRoute()
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
<script setup lang="ts">
|
||||
definePageMeta({
|
||||
key: route => `${route.params.server}:${route.params.account}`,
|
||||
})
|
||||
|
||||
const params = useRoute().params
|
||||
const accountName = $(computedEager(() => toShortHandle(params.account as string)))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue