Ver Fonte

安全问题修复

xgb há 1 dia atrás
pai
commit
79687c771b

+ 0 - 10
src/utils/cos.js

@@ -1,22 +1,15 @@
 import COS from "cos-js-sdk-v5"
 import { getTmpSecretKey } from "@/api/common"
 
-console.log("环境变量:", process.env)
-console.log("NODE_ENV:", process.env.NODE_ENV)
-console.log("VUE_APP_COS_BUCKET:", process.env.VUE_APP_COS_BUCKET)
-console.log("VUE_APP_COS_REGION:", process.env.VUE_APP_COS_REGION)
-
 const config = {
   Bucket: process.env.VUE_APP_COS_BUCKET,
   Region: process.env.VUE_APP_COS_REGION,
 }
-console.log("COS配置:", config)
 
 export const uploadObject = async (file, onProgress, type, callBackUp) => {
   try {
     console.log(type)
     const response = await getTmpSecretKey()
-    console.log("Key  ", response)
     const data = response.data
     const credentials = data && data.credentials
 
@@ -39,7 +32,6 @@ export const uploadObject = async (file, onProgress, type, callBackUp) => {
     })
 
     console.log("初始化成功")
-    console.log(process.env)
     const fileName = file.name || ""
     const upload_file_name = new Date().getTime() + "." + fileName.split(".")[fileName.split(".").length - 1]
     const date = new Date()
@@ -50,8 +42,6 @@ export const uploadObject = async (file, onProgress, type, callBackUp) => {
     const videoKey = `/userVideo/${uploadDay}/${upload_file_name}`
     const courseKey = `/course/${uploadDay}/${upload_file_name}`
     let liveKey;
-    console.log("LIVE_PATH value:", process.env.VUE_APP_LIVE_PATH);  // 添加这行查看实际值
-    console.log("Type of LIVE_PATH:", typeof process.env.VUE_APP_LIVE_PATH);  // 查看类型
 // 检查是否是空字符串或只有空格
     if (process.env.VUE_APP_LIVE_PATH && process.env.VUE_APP_LIVE_PATH.trim() !== '') {
       liveKey = `${process.env.VUE_APP_LIVE_PATH.trim()}/${uploadDay}/${upload_file_name}`;

+ 0 - 1
src/views/fastGpt/fastGptPushTokenTotal/index.vue

@@ -225,7 +225,6 @@ export default {
     /** 搜索按钮操作 */
     handleQuery() {
       this.queryParams.pageNum = 1;
-      console.log(this.selectedAppKey)
       if(this.selectedAppKey === null || typeof this.selectedAppKey === 'undefined'){
         this.queryParams.appKey = null;
       }

+ 0 - 1
src/views/fastGpt/fastGptPushTokenTotalDept/index.vue

@@ -216,7 +216,6 @@ export default {
     /** 搜索按钮操作 */
     handleQuery() {
       this.queryParams.pageNum = 1;
-      console.log(this.selectedAppKey)
       if(this.selectedAppKey === null || typeof this.selectedAppKey === 'undefined'){
         this.queryParams.appKey = null;
       }

+ 0 - 1
src/views/fastGpt/fastgptEventLogTotal/index.vue

@@ -317,7 +317,6 @@ export default {
     /** 搜索按钮操作 */
     handleQuery() {
       this.queryParams.pageNum = 1;
-      console.log(this.selectedAppKey)
       if(this.selectedAppKey === null || typeof this.selectedAppKey === 'undefined'){
         this.queryParams.appKey = null;
       }

+ 1 - 1
src/views/login.vue

@@ -209,7 +209,7 @@ export default {
     // 微信扫码成功回调
     handleWechatLoginSuccess(token) {
       this.loading = false
-      console.log("父组件收到 loginSuccess:", token);
+      console.log("父组件收到 loginSuccess");
       this.$store.commit("SET_TOKEN", token);
       setToken(token);
       this.$router.push({ path: this.redirect || "/" });