diff --git a/src/permission.js b/src/permission.js index 38df185..8671ff4 100644 --- a/src/permission.js +++ b/src/permission.js @@ -114,25 +114,8 @@ router.beforeEach(async (to, from, next) => { // hack方法 确保addRoutes已完成 ,set the replace: true so the navigation will not leave a history record next({ ...to, replace: true }) } else { - if (to.path === '/enterpriseStandardLibrary/enterpriseStandardDetail') { - // 跳企标详情,需要判断是否能看详情 - const params = {} - if (to.query.id) { - params.id = to.query.id - } else if (to.query.standardNumber) { - params.standardNumber = to.query.standardNumber - } - isCanLookDetail(params).then(res => { - if (res.success && res.result) { - next({ path: redirect }) - } else { - next({ path: '/404' }) - } - }) - } else { - // 跳转到目的路由 - next({ path: redirect }) - } + // 跳转到目的路由 + next({ path: redirect }) } }) })