bug调试
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
afb1d17853
commit
38ce7c1f56
|
@ -14,16 +14,6 @@ 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)
|
||||
// }
|
||||
NProgress.start()
|
||||
// 设置页面标题
|
||||
// document.title = getPageTitle(to.meta.title)
|
||||
|
@ -33,6 +23,12 @@ router.beforeEach(async (to, from, next) => {
|
|||
Vue.prototype.toPath = to.path
|
||||
Vue.prototype.$path = []
|
||||
if (hasToken) {
|
||||
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 });
|
||||
}
|
||||
}
|
||||
if (to.path === '/login' || to.path === '/recompose' || to.path === '/email-recompose' || to.path === '/error' || to.path === '/ReviewersResearchForm' || to.path === '/ReviewersResearch') {
|
||||
if (to.path === '/ReviewersResearch') {
|
||||
await this.$store.dispatch('user/logout')
|
||||
|
|
Loading…
Reference in New Issue