From 9a1b28e08c2ded63beab8849099ef7f1bfad6445 Mon Sep 17 00:00:00 2001 From: "DESKTOP-6C3NK6N\\WXS" <815034831@qq.com> Date: Mon, 22 Jul 2024 18:02:26 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E9=85=8D=E7=BD=AE=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E9=83=A8=E5=88=86=E9=A1=B5=E9=9D=A2=E6=8E=92=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 4 +++- src/permission.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/App.vue b/src/App.vue index 2b74fb5f..7698c6fb 100644 --- a/src/App.vue +++ b/src/App.vue @@ -111,7 +111,9 @@ export default { async handler() { if ( this.$route.query.trialId && - this.$route.query.trialId !== this.$store.state.trials.config.trialId + this.$route.query.trialId !== + this.$store.state.trials.config.trialId && + this.$store.state.trials.whiteList.indexOf(this.$route.path) === -1 ) { let res = await getTrialExtralConfig({ TrialId: this.$route.query.trialId, diff --git a/src/permission.js b/src/permission.js index 4c881eed..20d84cf6 100644 --- a/src/permission.js +++ b/src/permission.js @@ -11,7 +11,7 @@ import { OSSclient } from './utils/oss' NProgress.configure({ showSpinner: false }) const whiteList = ['/ReviewersResearch', '/login', '/error', '/resetpassword', '/recompose', '/email-recompose', '/trialStats', '/showdicom', '/imagesShare', '/audit', '/preview', '/researchLogin', '/researchLogin_m', '/blindResumeInfo', '/trialsResume', '/joinVerify', '/showNoneDicoms', '/noneDicomReading', '/clinicalData', '/readingDicoms', '/readingPage', '/visitDicomReview', '/visitNondicomReview', '/globalReview', '/adReview', '/oncologyReview', '/nonedicoms'] - +store.state.trials.whiteList = whiteList; router.beforeEach(async (to, from, next) => { NProgress.start() // 设置页面标题