From 82df6ffb8981d27c4d2fa8388595b52972aef0b1 Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期五, 07 六月 2024 15:17:32 +0800
Subject: [PATCH] 题目请求取消token

---
 src/assets/js/middleGround/api/store.js      |    3 ++-
 src/books/childHealth/view/content/index.vue |    6 ------
 2 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/src/assets/js/middleGround/api/store.js b/src/assets/js/middleGround/api/store.js
index 3dab5cc..c0c8752 100644
--- a/src/assets/js/middleGround/api/store.js
+++ b/src/assets/js/middleGround/api/store.js
@@ -302,7 +302,8 @@
       })
     }
     let token = localStorage.getItem(tokenKey)
-    let url = token ? '/store/api/ApiQueryProductByAppUser' : '/store/api/ApiQueryProduct'
+    // let url = token ? '/store/api/ApiQueryProductByAppUser' : '/store/api/ApiQueryProduct'
+    let url = '/store/api/ApiQueryProduct'
     return request({
       url: url,
       method: 'post',
diff --git a/src/books/childHealth/view/content/index.vue b/src/books/childHealth/view/content/index.vue
index ccae517..a06b1ef 100644
--- a/src/books/childHealth/view/content/index.vue
+++ b/src/books/childHealth/view/content/index.vue
@@ -619,31 +619,25 @@
             );
             const catalog = catalogDom.getAttribute("num");
             if (!this.questionDataMap[page]) {
-              const token = localStorage.getItem(this.config.tokenKey)
               if (testData && testData[catalog]) {
                 if (testData[catalog][page]) {
                   if (Array.isArray(testData[catalog][page])) {
-                    if(token) {
                       this.questionDataMap[page] = await getQuestionList(
                         page,
                         testData[catalog][page],
                         this.config.activeBook
                       );
-                    }
                   } else {
                     const obj = {};
                     for (let key in testData[catalog][page]) {
-                      if(token) {
                           obj[key] = await getQuestionList(
                           [],
                           testData[catalog][page][key],
                           this.config.activeBook
                         );
-                      }
                     }
                     this.questionDataMap[page] = obj;
                   }
-                  console.log("棰樼洰", this.questionDataMap);
                 }
               }
             }

--
Gitblit v1.9.1