diff --git a/src/components/admin/admin-Navbar.vue b/src/components/admin/admin-Navbar.vue index 0f9a1a6..5b6ba56 100644 --- a/src/components/admin/admin-Navbar.vue +++ b/src/components/admin/admin-Navbar.vue @@ -53,6 +53,7 @@ diff --git a/src/components/notification.vue b/src/components/notification.vue index 67084c3..31c3ced 100644 --- a/src/components/notification.vue +++ b/src/components/notification.vue @@ -31,6 +31,7 @@ export default { this.data.forEach(function(item,index){ item.created_at = dayjs(item.created_at).format('YYYY-MM-DD HH:mm:ss'); }) + this.data.reverse(); } }) } @@ -41,4 +42,4 @@ export default { \ No newline at end of file + diff --git a/src/router/index.js b/src/router/index.js index b2f6460..5ccd34b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -57,6 +57,13 @@ const router = createRouter({ path:'/admin', name:'Admin', component: () => import('../views/admin/index.vue'), + children:[ + { + path:'notification', + name:'AdminNotification', + component : () => import('../views/admin/AdminNotice.vue'), + } + ] }, { path:'/404', diff --git a/src/views/admin/AdminNotice.vue b/src/views/admin/AdminNotice.vue new file mode 100644 index 0000000..4035030 --- /dev/null +++ b/src/views/admin/AdminNotice.vue @@ -0,0 +1,11 @@ + +