Любимые страницы

This commit is contained in:
iriska-gri committed 2023-12-21 12:55:18 +03:00
1 parent 1b1220b9e7
commit e1e41d9256
3 files changed
+42 -13

No files matched your search

+33 -6
View File
@@ -57,11 +57,37 @@
<v-row class="flex-grow-0">
<v-col class="pa-1">
<v-card class="flex-colmn">
<v-btn-toggle
<v-sheet
class="mx-auto "
:class="favorit.length>10?'mx-n3':''"
max-width="800"
>
<v-slide-group
show-arrows
>
<v-slide-group-item
v-for="x in favorit"
:key="x"
>
<v-btn-toggle
v-model="toggle"
divided
variant="outlined"
>
<v-btn
:icon="x.pages__ico"
:to="x.pages__fullPath"
/>
</v-btn-toggle>
</v-slide-group-item>
</v-slide-group>
</v-sheet>
<!-- <v-btn-toggle
v-model="toggle"
divided
variant="outlined"
>
<v-tooltip
v-for="x in favorit"
:key="x"
@@ -76,7 +102,7 @@
/>
</template>
</v-tooltip>
</v-btn-toggle>
</v-btn-toggle> -->
</v-card>
</v-col>
</v-row>
@@ -128,15 +154,16 @@
onMounted(() => {
favoritLinks()
})
const favoritLinks = () => {
// axiosApiInstance.get(`api/watcher/selectedlinks/`)
// .then(data => {
// favorit.value = data.data
// })
axiosApiInstance.get(`api/watcher/selectedlinks/`)
.then(data => {
favorit.value = data.data
})
}