项目配置获取部分页面排除

uat_us
DESKTOP-6C3NK6N\WXS 2024-07-22 18:02:26 +08:00
parent 94ca89db27
commit 9a1b28e08c
2 changed files with 4 additions and 2 deletions

View File

@ -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,

View File

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