add default layout
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
<template>
|
||||
<div>
|
||||
<boxes />
|
||||
</div>
|
||||
<boxes />
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
@@ -25,7 +23,7 @@ onMounted(async () => {
|
||||
const idParam = Array.isArray(route.params.id) ? route.params.id[0] : route.params.id
|
||||
if (typeof idParam === 'string' && idParam.length > 0) {
|
||||
uiStore.selectBox(idParam)
|
||||
|
||||
|
||||
// Lire automatiquement la box si on est sur la page d'une box
|
||||
const box = dataStore.boxes.find(b => b.id === idParam)
|
||||
if (box) {
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
<template>
|
||||
<div>
|
||||
<boxes />
|
||||
</div>
|
||||
<boxes />
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
<template>
|
||||
<div>
|
||||
<boxes />
|
||||
</div>
|
||||
<boxes />
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
|
||||
Reference in New Issue
Block a user