diff --git a/src/assets/404.png b/src/assets/404.png new file mode 100644 index 00000000..3d8e2305 Binary files /dev/null and b/src/assets/404.png differ diff --git a/src/assets/404_cloud.png b/src/assets/404_cloud.png new file mode 100644 index 00000000..c6281d09 Binary files /dev/null and b/src/assets/404_cloud.png differ diff --git a/src/router/index.js b/src/router/index.js index 55013a67..ff9bb323 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -7,9 +7,11 @@ import Layout from '../views/layout/Layout'; // dashboard // import dashboard from '../views/dashboard/index'; const dashboard = resolve => require(['../views/dashboard/index'], resolve); -/* error*/ + +/* error page*/ const Err404 = resolve => require(['../views/error/404'], resolve); const Err401 = resolve => require(['../views/error/401'], resolve); + /* login*/ import Login from '../views/login/'; import authRedirect from '../views/login/authredirect'; @@ -37,6 +39,7 @@ const MixChart = resolve => require(['../views/charts/mixchart'], resolve); const ExcelDownload = resolve => require(['../views/excel/index'], resolve); + /* admin*/ // const AdminCreateUser = resolve => require(['../views/admin/createUser'], resolve); // const QuicklyCreateUser = resolve => require(['../views/admin/quicklycreate'], resolve); @@ -98,6 +101,17 @@ export default new Router({ { path: 'mixchart', component: MixChart, name: '混合图表' } ] }, + { + path: '/errorpage', + component: Layout, + redirect: 'noredirect', + name: '错误页面', + icon: 'tubiaoleixingzhengchang', + children: [ + { path: '401', component: Err401, name: '401' }, + { path: '404', component: Err404, name: '404' } + ] + }, { path: '/excel', component: Layout, diff --git a/src/views/error/401.vue b/src/views/error/401.vue index 3e95fa6f..bac594b2 100644 --- a/src/views/error/401.vue +++ b/src/views/error/401.vue @@ -4,6 +4,7 @@

Oops!

+ gif来源airbnb 页面

你没有权限去该页面

如有不满请联系你领导