Skip to content

Commit a3534fc

Browse files
committed
๐Ÿ’„ [design] : ํƒ‘๋ฐ” ๋ฐ ๋กœ๊ทธ์ธ ๋””์ž์ธ ์ˆ˜์ •
1 parent 455aecf commit a3534fc

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

โ€Žsrc/components/top-bar/TopBar.vueโ€Ž

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
</template>
4747

4848
<script setup lang="ts">
49-
import { ref, onMounted } from 'vue'
49+
import { ref, onMounted, watch } from 'vue'
5050
import CommonIcons from '../common/CommonIcons.vue'
5151
import SideBar from './SideBar.vue'
5252
import { hamburgerIcon } from '../../constants/iconPath'
@@ -92,7 +92,7 @@ const isProfileVisible = ref(false)
9292
const 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 = () => {
108108
const 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>

โ€Žsrc/views/LoginView.vueโ€Ž

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
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"
@@ -46,7 +48,6 @@
4648
import { ref } from 'vue'
4749
import { useRouter } from 'vue-router'
4850
import { postLogin } from '@/api/auth'
49-
import TitleContainer from '@/components/common/TitleContainer.vue'
5051
5152
const router = useRouter()
5253

0 commit comments

Comments
ย (0)