增加营销相关菜单
This commit is contained in:
parent
1970ebf81f
commit
fee11cca69
@ -65,7 +65,11 @@ export default {
|
||||
i18n: 'I18n',
|
||||
externalLink: 'External Link',
|
||||
profile: 'Profile',
|
||||
article: 'Article'
|
||||
article: 'Article',
|
||||
marketing: 'Marketing',
|
||||
marketing_coupon: 'Coupon',
|
||||
marketing_promo: 'Promo Code',
|
||||
marketing_points: 'Points Setting',
|
||||
},
|
||||
navbar: {
|
||||
logOut: 'Log Out',
|
||||
@ -182,5 +186,8 @@ export default {
|
||||
},
|
||||
article: {
|
||||
add: 'New Article'
|
||||
},
|
||||
marketing: {
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -65,7 +65,11 @@ export default {
|
||||
i18n: '国际化',
|
||||
externalLink: '外链',
|
||||
profile: '个人中心',
|
||||
article: '资讯管理'
|
||||
article: '资讯管理',
|
||||
marketing: '营销管理',
|
||||
marketing_coupon: '优惠券设置',
|
||||
marketing_promo: '优惠码设置',
|
||||
marketing_points: '积分设置',
|
||||
},
|
||||
navbar: {
|
||||
logOut: '退出登录',
|
||||
|
@ -8,6 +8,7 @@ import Layout from '@/layout/index.vue'
|
||||
import tableRouter from './modules/table'
|
||||
import systemRoutes from '@/router/modules/system'
|
||||
import articleRouters from '@/router/modules/article'
|
||||
import marketingRoutes from '@/router/modules/marketing'
|
||||
|
||||
Vue.use(VueRouter)
|
||||
|
||||
@ -116,6 +117,7 @@ export const constantRoutes: RouteConfig[] = [
|
||||
export const asyncRoutes: RouteConfig[] = [
|
||||
systemRoutes,
|
||||
articleRouters,
|
||||
marketingRoutes,
|
||||
{
|
||||
path: '/error-log',
|
||||
component: Layout,
|
||||
|
46
src/router/modules/marketing.ts
Normal file
46
src/router/modules/marketing.ts
Normal file
@ -0,0 +1,46 @@
|
||||
import { RouteConfig } from 'vue-router'
|
||||
import Layout from '@/layout/index.vue'
|
||||
|
||||
const marketingRoutes: RouteConfig = {
|
||||
path: '/marketing',
|
||||
component: Layout,
|
||||
meta: {
|
||||
title: 'marketing',
|
||||
icon: 'component',
|
||||
alwaysShow: true
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: 'coupon',
|
||||
component: () => import('@/views/marketing/coupon.vue'),
|
||||
name: 'CouponSetting',
|
||||
meta: {
|
||||
title: 'marketing_coupon',
|
||||
permissions: ['coupon:read'],
|
||||
elicon: 'el-icon-arrow-right'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'promo',
|
||||
component: () => import('@/views/marketing/promo.vue'),
|
||||
name: 'PromoSetting',
|
||||
meta: {
|
||||
title: 'marketing_promo',
|
||||
permissions: ['promo:read'],
|
||||
elicon: 'el-icon-arrow-right'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'points',
|
||||
component: () => import('@/views/marketing/points.vue'),
|
||||
name: 'PointsSetting',
|
||||
meta: {
|
||||
title: 'marketing_points',
|
||||
permissions: ['points:read'],
|
||||
elicon: 'el-icon-arrow-right'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
export default marketingRoutes
|
0
src/views/marketing/coupon.vue
Normal file
0
src/views/marketing/coupon.vue
Normal file
0
src/views/marketing/points.vue
Normal file
0
src/views/marketing/points.vue
Normal file
0
src/views/marketing/promo.vue
Normal file
0
src/views/marketing/promo.vue
Normal file
Loading…
x
Reference in New Issue
Block a user