diff --git a/admin-ui/src/router/index.js b/admin-ui/src/router/index.js index 7dd09c2..1ffc172 100644 --- a/admin-ui/src/router/index.js +++ b/admin-ui/src/router/index.js @@ -290,6 +290,37 @@ export const asyncRouterMap = [ icon: 'chart' }, children: [ + { + path: 'articleList', + component: () => import('@/views/promotion/articleList'), + name: 'articleList', + meta: { + perms: ['GET /admin/article/list', 'POST /admin/article/delete'], + title: '公告列表', + noCache: true + } + }, + { + path: 'articleCreate', + component: () => import('@/views/promotion/articleCreate'), + name: 'articleCreate', + meta: { + perms: ['POST /admin/article/create'], + title: '发布公告', + noCache: true + } + }, + { + path: 'articleEdit', + component: () => import('@/views/promotion/articleEdit'), + name: 'articleEdit', + meta: { + perms: ['GET /admin/article/detail', 'POST /admin/article/update'], + title: '广告管理', + noCache: true + }, + hidden: true + }, { path: 'ad', component: () => import('@/views/promotion/ad'), @@ -441,6 +472,47 @@ export const asyncRouterMap = [ } ] }, + { + path: 'external-link', + component: Layout, + redirect: 'noredirect', + alwaysShow: true, + name: 'externalLink', + meta: { + title: '外链', + icon: 'link' + }, + children: [ + { + path: 'https://cloud.tencent.com/product/cos', + meta: { title: '腾讯云存储', icon: 'link' } + }, + { + path: 'https://cloud.tencent.com/product/sms', + meta: { title: '腾讯云短信', icon: 'link' } + }, + { + path: 'https://pay.weixin.qq.com/index.php/core/home/login', + meta: { title: '微信支付', icon: 'link' } + }, + { + path: 'https://mpkf.weixin.qq.com/', + meta: { title: '小程序客服', icon: 'link' } + }, + { + path: 'https://www.alibabacloud.com/zh/product/oss', + meta: { title: '阿里云存储', icon: 'link' } + }, + { + path: 'https://www.qiniu.com/products/kodo', + meta: { title: '七牛云存储', icon: 'link' } + }, + { + path: 'http://www.kdniao.com/api-track', + meta: { title: '快递鸟', icon: 'link' } + } + ] + }, { path: '/profile', component: Layout, diff --git a/admin-ui/src/views/errorPage/401.vue b/admin-ui/src/views/errorPage/401.vue index 3ff25bd..2442012 100644 --- a/admin-ui/src/views/errorPage/401.vue +++ b/admin-ui/src/views/errorPage/401.vue @@ -12,7 +12,7 @@