chao vor 1 Monat
Ursprung
Commit
52055da760
2 geänderte Dateien mit 1 neuen und 5 gelöschten Zeilen
  1. 1 3
      index.js
  2. 0 2
      src/blockly/account.js

+ 1 - 3
index.js

@@ -190,8 +190,7 @@ function getCookie(name) {
 }
 window.onload = async function () {
   // stia 登录获取信息
-  const token = getCookie("token");
-  console.log('window.onload', token)
+  token = getCookie("token");
   var myHeaders = new Headers();
   myHeaders.append("token", token);
 
@@ -203,7 +202,6 @@ window.onload = async function () {
   fetch("https://eduofai.com/api/coco/user/info", requestOptions)
     .then(response => response.text())
     .then(result => {
-      console.log(JSON.parse(result))
       let data = JSON.parse(result)
       // 保存用户信息
       if(data.status == 200){

+ 0 - 2
src/blockly/account.js

@@ -91,7 +91,6 @@ function getCloudFileList() {
     .then(response => response.text())
     .then(result => {
       let data = JSON.parse(result);
-      console.log("list", data)
       if (data.status == 200) {
         loginModalStatus();
         updateCloudFileList(data.data.blocks)
@@ -252,7 +251,6 @@ function deleteCloudFile(id) {
     .then(response => response.text())
     .then(result => {
       let data = JSON.parse(result);
-      console.log("delete", data)
       if (data.status == 200) {
         Materialize.toast(CCB.str_group.success_deleteFile, 4000);
         if (CCB.selectCloudFile == filename) {