diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue index edee3b05..be00b93f 100644 --- a/src/layouts/MainLayout.vue +++ b/src/layouts/MainLayout.vue @@ -18,6 +18,7 @@ import { useNavigator } from 'src/stores/navigator'; import { initLang, initTheme, Lang, setLang } from 'src/utils/ui'; import { baseUrl } from 'stores/utils'; import { useNotification } from 'src/stores/notification'; +import moment from 'moment'; const useMyBranch = useMyBranchStore(); const { fetchListMyBranch } = useMyBranch; @@ -28,13 +29,6 @@ interface NotificationButton { active: boolean; } -interface Notification { - id: string; - title: string; - content: string; - read: boolean; -} - const $q = useQuasar(); const loaderStore = useLoader(); const navigatorStore = useNavigator(); @@ -82,20 +76,6 @@ const notiMenu = ref([ active: false, }, ]); -const notification = ref([ - { - id: '1', - title: 'Unread', - content: 'Unread', - read: false, - }, - { - id: '3', - title: 'Read', - content: 'Already read', - read: true, - }, -]); function setActive(button: NotificationButton) { notiMenu.value = notiMenu.value.map((current) => ({ @@ -290,7 +270,7 @@ onMounted(async () => {
- + {