Merge branch 'feature-enterprise-wechat-launch' into uat
# Conflicts: # src/views/Home/Index.vue
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user