natasha 1 年間 前
コミット
601c253c30
2 ファイル変更2 行追加2 行削除
  1. 1 1
      src/permission.js
  2. 1 1
      src/views/wordcard/table.vue

+ 1 - 1
src/permission.js

@@ -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

+ 1 - 1
src/views/wordcard/table.vue

@@ -95,7 +95,7 @@ export default {
   watch: {},
   // 生命周期 - 创建完成(可以访问当前this实例)
   async created() {
-    console.log('2024.01.17-1');
+    console.log('2024.01.17-2');
     const _this = this;
     if (this.AccessToken) {
       const Mname = 'login_control-ParseAccessToken';