Commit 6d99b085 by 陈羽

update: 修改弹窗推广路由

parent d45143fc
// 弹窗
export default {
path: 'pop',
path: 'popup',
name: '弹窗推广',
component: () => import(/* webpackChunkName: "pop" */ '../../views/pop/index.vue'),
redirect: '/pop/list',
component: () => import(/* webpackChunkName: "popup" */ '../../views/popup/index.vue'),
redirect: '/popup/list',
children: [
{
path: 'list',
name: '计划列表',
component: () => import(/* webpackChunkName: "pop" */ '../../views/pop/list.vue'),
component: () => import(/* webpackChunkName: "popup" */ '../../views/popup/list.vue'),
meta: {
path: '/pop/list'
path: '/popup/list'
}
},
{
path: 'add',
name: '新建计划',
component: () => import(/* webpackChunkName: "pop" */ '../../views/pop/form.vue')
component: () => import(/* webpackChunkName: "popup" */ '../../views/popup/form.vue')
},
{
path: 'edit',
name: '编辑计划',
component: () => import(/* webpackChunkName: "pop" */ '../../views/pop/form.vue')
component: () => import(/* webpackChunkName: "popup" */ '../../views/popup/form.vue')
}
]
};
......@@ -348,7 +348,7 @@ export default {
},
created() {
const path = this.$route.path;
if (path == '/pop/edit') {
if (path == '/popup/edit') {
this.getDetail();
}
this.getPopupLinkList();
......
......@@ -7,7 +7,7 @@
export default {
name: 'pop',
created() {
this.$store.commit('mutations.breadcrumb', [{ name: '营销管理' }, { name: '弹窗推广', path: '/pop' }, { name: '弹窗推广', path: '/pop/list' }]);
this.$store.commit('mutations.breadcrumb', [{ name: '营销管理' }, { name: '弹窗推广', path: '/popup' }, { name: '弹窗推广', path: '/popup/list' }]);
this.$store.commit('aside_handler', false);
this.$nextTick(_ => {
this.$store.commit('aside_handler', true);
......
......@@ -177,9 +177,9 @@ export default {
},
goForm(group, type) {
if (type === 'add') {
this.$router.push(`/pop/add`);
this.$router.push(`/popup/add`);
} else {
this.$router.push(`/pop/edit?id=${group.id}`);
this.$router.push(`/popup/edit?id=${group.id}`);
}
},
delGroup(group) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment