Przeglądaj źródła

修改集成跳转

natasha 1 rok temu
rodzic
commit
785881024a
2 zmienionych plików z 3 dodań i 2 usunięć
  1. 1 1
      src/permission.js
  2. 2 1
      src/views/wordcard/table.vue

+ 1 - 1
src/permission.js

@@ -17,7 +17,7 @@ router.beforeEach(async (to, from, next) => {
   document.title = getPageTitle(to.meta.title)
   //next();
   NProgress.done()
-  const hasToken = getToken()
+  const hasToken = getToken()||sessionStorage.getItem('GCLS_Token_Tc');
   if (hasToken || to.path === '/Integration/TextAnalyser' || to.path === '/Integration/Corpus' || to.path==='/Integration/WordCard') {
     //=======重点部分以下=======
 

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

@@ -34,7 +34,7 @@
               {{ item.name }}
             </div>
             <div class="dv">
-              {{ item.type == 'WORD' ? '字卡片' : '句卡片' }}
+              {{ item.type == 'WORD' ? '字词卡' : '书写卡' }}
             </div>
             <div class="dv">{{ item.text }}</div>
             <div class="dv">{{ item.create_time }}</div>
@@ -95,6 +95,7 @@ export default {
   watch: {},
   // 生命周期 - 创建完成(可以访问当前this实例)
   async created() {
+    console.log('2024.01.17');
     const _this = this;
     if (this.AccessToken) {
       const Mname = 'login_control-ParseAccessToken';