diff --git a/src/components/admin/challagne/chal.vue b/src/components/admin/challagne/chal.vue new file mode 100644 index 0000000..69e1bf9 --- /dev/null +++ b/src/components/admin/challagne/chal.vue @@ -0,0 +1,82 @@ + + + diff --git a/src/components/admin/notification.vue b/src/components/admin/notification.vue index cf7dd1f..d092f58 100644 --- a/src/components/admin/notification.vue +++ b/src/components/admin/notification.vue @@ -71,10 +71,9 @@ export default { axios.post('/api/v1/admin/notice',this.formData).then(res => { if (res.data.code === 200) { this.dialogTableVisible = false; - ElNotification.success({ - title: '成功', + this.$message({ message: '添加成功', - duration: 2000 + type: 'success' }); window.location.reload() } @@ -84,10 +83,9 @@ export default { axios.delete('/api/v1/admin/notice/'+row.id).then(res => { if (res.data.code === 200) { this.data.splice(this.data.indexOf(row),1); - ElNotification.success({ - title: '成功', + this.$message({ message: '删除成功', - duration: 2000 + type: 'success' }); } }) diff --git a/src/router/index.js b/src/router/index.js index 5ccd34b..3bd1fb9 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -62,8 +62,14 @@ const router = createRouter({ path:'notification', name:'AdminNotification', component : () => import('../views/admin/AdminNotice.vue'), + }, + { + path:'challenges', + name:'AdminChallenges', + component: ()=> import('../views/admin/AdminChal.vue'), } ] + }, { path:'/404', diff --git a/src/views/admin/AdminChal.vue b/src/views/admin/AdminChal.vue new file mode 100644 index 0000000..d476f2d --- /dev/null +++ b/src/views/admin/AdminChal.vue @@ -0,0 +1,12 @@ + + +