fixessome
This commit is contained in:
14
src/App.vue
14
src/App.vue
@@ -9,7 +9,7 @@
|
||||
<div class="flex flex-col flex-grow gap-4 ">
|
||||
<!-- {{ tg_id }}-->
|
||||
<Button label="Sub" :class="checkNotif ? 'flex' : '!hidden'" @click="checkSubscribe"/>
|
||||
<router-view class="pt-2"/>
|
||||
<router-view />
|
||||
<div class="bg-gray-100 h-12 block lg:hidden"></div>
|
||||
</div>
|
||||
|
||||
@@ -29,7 +29,7 @@ import {subscribeUserToPush} from "@/services/pushManager";
|
||||
import apiClient from '@/services/axiosSetup';
|
||||
import {useUserStore} from "@/stores/userStore";
|
||||
import {useDrawerStore} from '@/stores/drawerStore'
|
||||
import TransactionForm from "@/components/TransactionForm.vue";
|
||||
import TransactionForm from "@/components/transactions/TransactionForm.vue";
|
||||
|
||||
|
||||
const drawerStore = useDrawerStore();
|
||||
@@ -79,17 +79,17 @@ const sendSubscribe = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
console.log('vyzyvaem app')
|
||||
|
||||
const userStore = useUserStore();
|
||||
const user = computed(() => userStore.user);
|
||||
console.log('vyzvali app')
|
||||
|
||||
|
||||
onMounted(async () => {
|
||||
console.log("Загружаем данные при монтировании...");
|
||||
|
||||
if (!userStore.user) {
|
||||
console.log('vyzyvaem app2')
|
||||
|
||||
await userStore.fetchUserProfile();
|
||||
console.log('vyzvali app2')
|
||||
|
||||
}
|
||||
await checkSubscribe();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user