Merge branch 'feature-enterprise-wechat-launch' into uat

# Conflicts:
#	src/views/Home/Index.vue
This commit is contained in:
王博冉
2022-11-15 15:05:52 +08:00
19 changed files with 1463 additions and 22 deletions

View File

@@ -275,6 +275,12 @@ const constantRoutes = [
meta: { showPreview: false, showPublish: false, keepAlive: true, showShare: true },
component: () => import(/* webpackChunkName: "publish" */ '@/views/Publish/launch-center/launch-task/create')
},
{
path: 'enterprise-weChat',
name: 'enterprise-weChat',
meta: { showPreview: false, showPublish: false, keepAlive: true, showShare: true, permission:'super_admin_flag' },
component: () => import(/* webpackChunkName: "publish" */ '@/views/Publish/launch-center/launch-task/enterpriseWeChat')
},
// {
// path: "link",
// name: "link",
@@ -424,6 +430,16 @@ router.beforeEach((to, from, next) => {
// window.parent.location.href = 'https://yip-uat.dctest.digitalyili.com/login';
}
}
if(!to.meta.permission) {
next()
return
}
if(!JSON.parse(localStorage.getItem('plantUserInfo'))[to.meta.permission]) {
next({
path:'/error/404',
})
return
}
next()
})
export default router