|
@@ -21,7 +21,7 @@ router.beforeEach(async (to, from, next) => {
|
|
|
if (hasToken || to.path === '/Integration/TextAnalyser' || to.path === '/Integration/Corpus' || to.path==='/Integration/WordCard') {
|
|
|
//=======重点部分以下=======
|
|
|
|
|
|
- let config = getConfig();
|
|
|
+ let config = getConfig()||sessionStorage.getItem('GCLS_Token_Tc');
|
|
|
if (config || to.path === '/Integration/TextAnalyser' || to.path === '/Integration/Corpus' || to.path==='/Integration/WordCard') {
|
|
|
if (to.path === '/login') {
|
|
|
// if is logged in, redirect to the home page
|