|
@@ -18,11 +18,11 @@ router.beforeEach(async (to, from, next) => {
|
|
|
//next();
|
|
|
NProgress.done()
|
|
|
const hasToken = getToken()||sessionStorage.getItem('GCLS_Token_Tc');
|
|
|
- if (hasToken || to.path === '/Integration/TextAnalyser' || to.path === '/Integration/Corpus' || to.path==='/Integration/WordCard') {
|
|
|
+ if (hasToken || to.path === '/Integration/TextAnalyser' || to.path === '/Integration/Corpus' || to.path==='/Integration/WordCard'||to.path==='/textanalysis/Result') {
|
|
|
//=======重点部分以下=======
|
|
|
|
|
|
let config = getConfig()||sessionStorage.getItem('GCLS_Token_Tc');
|
|
|
- if (config || to.path === '/Integration/TextAnalyser' || to.path === '/Integration/Corpus' || to.path==='/Integration/WordCard') {
|
|
|
+ if (config || to.path === '/Integration/TextAnalyser' || to.path === '/Integration/Corpus' || to.path==='/Integration/WordCard'||to.path==='/textanalysis/Result') {
|
|
|
if (to.path === '/login') {
|
|
|
// if is logged in, redirect to the home page
|
|
|
next({ path: '/EnterSys' })
|