fix login spaces
This commit is contained in:
@@ -12,7 +12,8 @@
|
|||||||
<!-- fill="var(--p-text-color)"-->
|
<!-- fill="var(--p-text-color)"-->
|
||||||
<!-- />-->
|
<!-- />-->
|
||||||
<!-- </svg>-->
|
<!-- </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>
|
||||||
<template #item="{ item, props, hasSubmenu, root }">
|
<template #item="{ item, props, hasSubmenu, root }">
|
||||||
<router-link :to="item.url" v-ripple class="flex items-center" v-bind="props.action">
|
<router-link :to="item.url" v-ripple class="flex items-center" v-bind="props.action">
|
||||||
@@ -30,9 +31,9 @@
|
|||||||
</router-link>
|
</router-link>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
<!-- <Button-->
|
<!-- <Button-->
|
||||||
<!-- @click="drawerStore.setCategoryType('EXPENSE');drawerStore.setTransactionType('INSTANT');drawerStore.visible = true"-->
|
<!-- @click="drawerStore.setCategoryType('EXPENSE');drawerStore.setTransactionType('INSTANT');drawerStore.visible = true"-->
|
||||||
<!-- label="Создать"/>-->
|
<!-- label="Создать"/>-->
|
||||||
|
|
||||||
<template #end>
|
<template #end>
|
||||||
<div class="flex items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
@@ -53,7 +54,8 @@
|
|||||||
</div>
|
</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>
|
||||||
</div>
|
</div>
|
||||||
@@ -102,16 +104,19 @@ watch(
|
|||||||
selectedSpace,
|
selectedSpace,
|
||||||
(newValue, oldValue) => {
|
(newValue, oldValue) => {
|
||||||
if (newValue) {
|
if (newValue) {
|
||||||
items.value.push({
|
const item = items.value.find((item) => item.label == 'Запись')
|
||||||
label: 'Запись',
|
if (!item) {
|
||||||
icon: 'pi pi-plus',
|
items.value.push({
|
||||||
url:'',
|
label: 'Запись',
|
||||||
command: () => {
|
icon: 'pi pi-plus',
|
||||||
drawerStore.setCategoryType('EXPENSE');
|
url: '',
|
||||||
drawerStore.setTransactionType('INSTANT');
|
command: () => {
|
||||||
drawerStore.visible = true
|
drawerStore.setCategoryType('EXPENSE');
|
||||||
}
|
drawerStore.setTransactionType('INSTANT');
|
||||||
})
|
drawerStore.visible = true
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user