natasha 1 tahun lalu
induk
melakukan
7c09f49c21
2 mengubah file dengan 3 tambahan dan 2 penghapusan
  1. 1 1
      src/views/teacher-dev/index.vue
  2. 2 1
      src/views/wordcard/table.vue

+ 1 - 1
src/views/teacher-dev/index.vue

@@ -87,7 +87,7 @@ export default {
   },
   computed: {},
   async created() {
-    console.log('2024.01.12-1');
+    console.log('2024.01.12-2');
     // 如果是edu.blcup.com环境下就隐藏文本分析入口
     if (document.domain === 'edu.blcup.com') {
       this.textAnalyseShow = false;

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

@@ -69,7 +69,7 @@
 import Header from '@/components/Header';
 import { LearnWebSI, getStaticContent } from '@/api/api';
 import { getConfigInfor } from '@/utils/index';
-import { setToken } from '@/utils/auth';
+import { setToken, getToken } from '@/utils/auth';
 export default {
   // import引入的组件需要注入到对象中才能使用
   components: {
@@ -104,6 +104,7 @@ export default {
       }).then((res) => {
         res.access_token = _this.AccessToken;
         setToken(res);
+        console.log(getToken() ? JSON.parse(getToken()) : 'null');
         console.log(res);
         debugger;
         this.showPage = true;