natasha 1 mese fa
parent
commit
8a98812546
2 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 1 0
      src/App.vue
  2. 2 2
      src/permission.js

+ 1 - 0
src/App.vue

@@ -26,6 +26,7 @@ export default {
     };
   },
   created() {
+    console.log('2025-5-16');
     let lang_type = localStorage.getItem('language_type');
     if (lang_type == 'AR') {
       this.dir = 'rtl';

+ 2 - 2
src/permission.js

@@ -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' })