解决医生附件上传问题

uat_us
caiyiling 2024-02-02 17:34:45 +08:00
parent 82d14ca667
commit d9e32fffe4
1 changed files with 7 additions and 0 deletions

View File

@ -23,6 +23,13 @@ router.beforeEach(async(to, from, next) => {
Vue.prototype.$path = [] Vue.prototype.$path = []
if (hasToken) { if (hasToken) {
if (to.path === '/login' || to.path === '/recompose' || to.path === '/email-recompose' || to.path === '/error' || to.path === '/ReviewersResearchForm' || to.path === '/ReviewersResearch') { 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')
OSSclient()
}
if (to.path === '/ReviewersResearchForm') {
OSSclient()
}
next() next()
NProgress.done() NProgress.done()
} else { } else {