Compare commits

..

No commits in common. "4f1fdb185f3b124dfab35aa93f8dc7e04d703a2f" and "6ecce41b353e4675e16565916e249b200349a6d3" have entirely different histories.

1 changed files with 6 additions and 5 deletions

View File

@ -17,14 +17,15 @@ store.state.trials.whiteList = whiteList;
router.beforeEach(async (to, from, next) => {
NProgress.start()
// 设置页面标题
// document.title = getPageTitle(to.meta.title) store.state.trials.whiteList.indexOf(to.path) === -1
// document.title = getPageTitle(to.meta.title)
if (!to.query.trialId) {
store.dispatch('trials/setConfig', {})
}
if (
to.query.trialId &&
to.query.trialId !==
store.state.trials.config.trialId
store.state.trials.config.trialId &&
store.state.trials.whiteList.indexOf(to.path) === -1
) {
console.log(to.query.path)
let res = await getTrialExtralConfig({
@ -36,14 +37,14 @@ router.beforeEach(async (to, from, next) => {
...res.Result,
})
}
}
if (!to.query.trialId) {
} if (!to.query.trialId) {
store.dispatch('trials/setConfig', {})
}
if (
to.query.trialId &&
to.query.trialId !==
store.state.trials.config.trialId
store.state.trials.config.trialId &&
store.state.trials.whiteList.indexOf(to.path) === -1
) {
let res = await getTrialExtralConfig({
TrialId: to.query.trialId,