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() // 设置页面标题