浏览代码

fix:关闭自动分析

liujiejie 1 月之前
父节点
当前提交
f22b5aba18
共有 2 个文件被更改,包括 1 次插入4 次删除
  1. 0 4
      downLoadServer/src/server/server.js
  2. 1 0
      downLoadServer/src/server/utils/chartsCom/lineAndChildLine.js

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

@@ -5,13 +5,9 @@ import { errorHandler } from "./middleware/errorHandler.js";
 import exampleRoutes from "./routes/exampleRoutes.js";
 import exampleRoutes from "./routes/exampleRoutes.js";
 import chartRoutes from "./routes/chartRoutes.js";
 import chartRoutes from "./routes/chartRoutes.js";
 import path from "path";
 import path from "path";
-import { fileURLToPath } from "url";
 // 引入 cors 模块
 // 引入 cors 模块
 import cors from "cors";
 import cors from "cors";
 
 
-const __filename = fileURLToPath(import.meta.url);
-const __dirname = path.dirname(__filename);
-
 const app = express();
 const app = express();
 // 使用 cors 中间件
 // 使用 cors 中间件
 app.use(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) => {
 export const generateLineAndChildLine = async (options) => {
   const { fileAddr } = options;
   const { fileAddr } = options;
+  console.log("options:", options);
 
 
   try {
   try {
     console.log("开始生成折线图...");
     console.log("开始生成折线图...");