fix login spaces

This commit is contained in:
xds
2025-03-06 19:13:29 +03:00
parent c982b30aae
commit a68c565f71

View File

@@ -12,7 +12,8 @@
<!-- fill="var(&#45;&#45;p-text-color)"-->
<!-- />-->
<!-- </svg>-->
<button @click="router.push('/').then(router.go(0))"><img alt="logo" src="/apple-touch-icon.png" width="32" height="32"/></button>
<button @click="router.push('/').then(router.go(0))"><img alt="logo" src="/apple-touch-icon.png" width="32"
height="32"/></button>
</template>
<template #item="{ item, props, hasSubmenu, root }">
<router-link :to="item.url" v-ripple class="flex items-center" v-bind="props.action">
@@ -30,9 +31,9 @@
</router-link>
</template>
<!-- <Button-->
<!-- @click="drawerStore.setCategoryType('EXPENSE');drawerStore.setTransactionType('INSTANT');drawerStore.visible = true"-->
<!-- label="Создать"/>-->
<!-- <Button-->
<!-- @click="drawerStore.setCategoryType('EXPENSE');drawerStore.setTransactionType('INSTANT');drawerStore.visible = true"-->
<!-- label="Создать"/>-->
<template #end>
<div class="flex items-center gap-2">
@@ -53,7 +54,8 @@
</div>
<!-- Сообщение "Скопировано" -->
<div v-if="copied" class="absolute bottom-[-60px] bg-green-500 text-white text-xs px-2 py-1 rounded transition-opacity">
<div v-if="copied"
class="absolute bottom-[-60px] bg-green-500 text-white text-xs px-2 py-1 rounded transition-opacity">
Скопировано!
</div>
</div>
@@ -102,16 +104,19 @@ watch(
selectedSpace,
(newValue, oldValue) => {
if (newValue) {
items.value.push({
label: 'Запись',
icon: 'pi pi-plus',
url:'',
command: () => {
drawerStore.setCategoryType('EXPENSE');
drawerStore.setTransactionType('INSTANT');
drawerStore.visible = true
}
})
const item = items.value.find((item) => item.label == 'Запись')
if (!item) {
items.value.push({
label: 'Запись',
icon: 'pi pi-plus',
url: '',
command: () => {
drawerStore.setCategoryType('EXPENSE');
drawerStore.setTransactionType('INSTANT');
drawerStore.visible = true
}
})
}
}
}
)