项目配置获取部分页面排除
parent
94ca89db27
commit
9a1b28e08c
|
@ -111,7 +111,9 @@ export default {
|
||||||
async handler() {
|
async handler() {
|
||||||
if (
|
if (
|
||||||
this.$route.query.trialId &&
|
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({
|
let res = await getTrialExtralConfig({
|
||||||
TrialId: this.$route.query.trialId,
|
TrialId: this.$route.query.trialId,
|
||||||
|
|
|
@ -11,7 +11,7 @@ import { OSSclient } from './utils/oss'
|
||||||
NProgress.configure({ showSpinner: false })
|
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']
|
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) => {
|
router.beforeEach(async (to, from, next) => {
|
||||||
NProgress.start()
|
NProgress.start()
|
||||||
// 设置页面标题
|
// 设置页面标题
|
||||||
|
|
Loading…
Reference in New Issue