From a8cc7882363a7d78de60ca8af8cf3c18bfc33c7b Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Thu, 25 Jul 2024 17:16:08 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E4=BF=AE=E6=94=B9bug87432=EF=BC=8C?= =?UTF-8?q?=E5=8E=BB=E6=8E=89=E4=BC=81=E6=A0=87=E8=AF=A6=E6=83=85=E9=A1=B5?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E7=9A=84=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/permission.js | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) 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 }) } }) })