File tree Expand file tree Collapse file tree 2 files changed +17
-6
lines changed
Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 4646</template >
4747
4848<script setup lang="ts">
49- import { ref , onMounted } from ' vue'
49+ import { ref , onMounted , watch } from ' vue'
5050import CommonIcons from ' ../common/CommonIcons.vue'
5151import SideBar from ' ./SideBar.vue'
5252import { hamburgerIcon } from ' ../../constants/iconPath'
@@ -92,7 +92,7 @@ const isProfileVisible = ref(false)
9292const fetchNotificationCount = async () => {
9393 try {
9494 const data = await getNotifiCount ()
95- countNotifi .value = data .count // ๐น count ๊ฐ๋ง ์ ์ฅ
95+ countNotifi .value = data .count
9696 } catch (error ) {
9797 console .error (' ์๋ฆผ ๊ฐ์ ๋ถ๋ฌ์ค๊ธฐ ์คํจ:' , error )
9898 }
@@ -108,4 +108,14 @@ const toggleProfile = () => {
108108const onCloseSide = () => {
109109 isSideOpen .value = false
110110}
111+
112+ watch (
113+ () => info .value ,
114+ async newInfo => {
115+ if (newInfo .memberName ) {
116+ await fetchNotificationCount ()
117+ }
118+ },
119+ { deep: true }
120+ )
111121 </script >
Original file line number Diff line number Diff line change 11<template >
22 <div class =" max-w-400" >
33 <div class =" py-16" >
4- <TitleContainer
5- :title =" 'TaskFlow\n๋ก๊ทธ์ธ'"
6- content =" ์์ด๋์ ๋น๋ฐ๋ฒํธ๋ฅผ ์
๋ ฅํด์ฃผ์ธ์" />
4+ <div class =" text-4xl font-bold text-center" >
5+ <p class =" pb-2" >TaskFlow</p >
6+ <p class =" pb-2" >๋ก๊ทธ์ธ</p >
7+ </div >
8+ <p class =" text-center font-bold text-body" >์์ด๋์ ๋น๋ฐ๋ฒํธ๋ฅผ ์
๋ ฅํด์ฃผ์ธ์</p >
79 </div >
810 <form
911 @submit.prevent =" handleLogin"
4648import { ref } from ' vue'
4749import { useRouter } from ' vue-router'
4850import { postLogin } from ' @/api/auth'
49- import TitleContainer from ' @/components/common/TitleContainer.vue'
5051
5152const router = useRouter ()
5253
You canโt perform that action at this time.
0 commit comments