parent
499ff58275
commit
65af806e19
6 changed files with 8 additions and 13 deletions
@ -1,9 +1,8 @@ |
||||
import router from './index' |
||||
import Setting from '@/setting' |
||||
import util from '@/libs/util' |
||||
|
||||
router.beforeEach((to, from, next) => { |
||||
document.title = Setting.titleSuffix |
||||
next() |
||||
localStorage.setItem('examPath', router.resolve(to.fullPath).href) |
||||
}) |
||||
to.path !== '/testPaper/preview' && localStorage.setItem('examPath', to.fullPath) |
||||
}) |
||||
|
Loading…
Reference in new issue