From 0af9d9a010f624a2fd7b7933bafaa8cd0b1f57f7 Mon Sep 17 00:00:00 2001
From: jiayuqi7813 <63686458+jiayuqi7813@users.noreply.github.com>
Date: Fri, 1 Jul 2022 02:10:00 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=85=AC=E5=91=8A=E6=97=B6?=
=?UTF-8?q?=E9=97=B4=E6=88=B3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/admin/admin-Navbar.vue | 13 ++++++++++---
src/components/admin/notification.vue | 6 ++++++
src/components/notification.vue | 3 ++-
src/router/index.js | 7 +++++++
src/views/admin/AdminNotice.vue | 11 +++++++++++
5 files changed, 36 insertions(+), 4 deletions(-)
create mode 100644 src/components/admin/notification.vue
create mode 100644 src/views/admin/AdminNotice.vue
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 @@
+
+
+
+
+