fix: ensure independent service state between page

main
Bastien Wirtz 2025-09-21 15:43:28 +02:00
parent 63647e837a
commit 61d5d0b722
2 changed files with 4 additions and 3 deletions

View File

@ -78,7 +78,7 @@
> >
<ServiceGroup <ServiceGroup
v-for="(group, groupIndex) in services" v-for="(group, groupIndex) in services"
:key="groupIndex" :key="`${currentPage}-${groupIndex}`"
:group="group" :group="group"
:is-vertical="vlayout && !filter" :is-vertical="vlayout && !filter"
:proxy="config.proxy" :proxy="config.proxy"
@ -187,6 +187,7 @@ export default {
document.title = document.title =
this.config.documentTitle || this.config.documentTitle ||
[this.config.title, this.config.subtitle].filter(Boolean).join(" | "); [this.config.title, this.config.subtitle].filter(Boolean).join(" | ");
if (this.config.stylesheet) { if (this.config.stylesheet) {
let stylesheet = ""; let stylesheet = "";
let addtionnal_styles = this.config.stylesheet; let addtionnal_styles = this.config.stylesheet;

View File

@ -4,7 +4,7 @@
<GroupHeader v-if="group.name" :group="group" class="group-title" /> <GroupHeader v-if="group.name" :group="group" class="group-title" />
<Service <Service
v-for="(item, index) in group.items" v-for="(item, index) in group.items"
:key="index" :key="`srv-${index}`"
:item="item" :item="item"
:proxy="proxy" :proxy="proxy"
:class="item.class || group.class" :class="item.class || group.class"
@ -21,7 +21,7 @@
/> />
<Service <Service
v-for="(item, index) in group.items" v-for="(item, index) in group.items"
:key="`service-${groupIndex}-${index}`" :key="`srv-${index}`"
:item="item" :item="item"
:proxy="proxy" :proxy="proxy"
:class="[ :class="[