bug调试
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
01c2a29085
commit
afb1d17853
|
@ -14,16 +14,16 @@ NProgress.configure({ showSpinner: false })
|
|||
const whiteList = ['/ReviewersResearch', '/login', '/error', '/resetpassword', '/recompose', '/email-recompose', '/trialStats', '/showdicom', '/imagesShare', '/audit', '/preview', '/researchLogin', '/blindResumeInfo', '/trialsResume', '/joinVerify', '/showNoneDicoms', '/noneDicomReading', '/clinicalData', '/readingDicoms', '/readingPage', '/visitDicomReview', '/visitNondicomReview', '/globalReview', '/adReview', '/oncologyReview', '/nonedicoms']
|
||||
|
||||
router.beforeEach(async (to, from, next) => {
|
||||
try {
|
||||
if (to.query.trialId && to.query.trialId !== store.state.trials.config.trialId) {
|
||||
let res = await getTrialExtralConfig({ TrialId: to.query.trialId });
|
||||
if (res.IsSuccess) {
|
||||
store.dispatch('trials/setConfig', { trialId: to.query.trialId, ...res.Result });
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
alert(err)
|
||||
}
|
||||
// try {
|
||||
// if (to.query.trialId && to.query.trialId !== store.state.trials.config.trialId) {
|
||||
// let res = await getTrialExtralConfig({ TrialId: to.query.trialId });
|
||||
// if (res.IsSuccess) {
|
||||
// store.dispatch('trials/setConfig', { trialId: to.query.trialId, ...res.Result });
|
||||
// }
|
||||
// }
|
||||
// } catch (err) {
|
||||
// alert(err)
|
||||
// }
|
||||
NProgress.start()
|
||||
// 设置页面标题
|
||||
// document.title = getPageTitle(to.meta.title)
|
||||
|
|
Loading…
Reference in New Issue