Pārlūkot izejas kodu

fix:关闭自动分析

liujiejie 1 mēnesi atpakaļ
vecāks
revīzija
f22b5aba18

+ 0 - 4
downLoadServer/src/server/server.js

@@ -5,13 +5,9 @@ import { errorHandler } from "./middleware/errorHandler.js";
 import exampleRoutes from "./routes/exampleRoutes.js";
 import chartRoutes from "./routes/chartRoutes.js";
 import path from "path";
-import { fileURLToPath } from "url";
 // 引入 cors 模块
 import cors from "cors";
 
-const __filename = fileURLToPath(import.meta.url);
-const __dirname = path.dirname(__filename);
-
 const app = express();
 // 使用 cors 中间件
 app.use(cors());

+ 1 - 0
downLoadServer/src/server/utils/chartsCom/lineAndChildLine.js

@@ -16,6 +16,7 @@ import { colorSchemes } from "../colors.js";
  */
 export const generateLineAndChildLine = async (options) => {
   const { fileAddr } = options;
+  console.log("options:", options);
 
   try {
     console.log("开始生成折线图...");