From 1b16c8a05bb6e724768b2349e711140ce06abeb9 Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Fri, 24 Jun 2022 09:09:03 +0800 Subject: [PATCH] makeDir --- code/VideoAccess-VCMP/api/app/lib/utils/xlsxDownload.js | 2 +- .../web/client/src/layout/actions/webSocket.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/code/VideoAccess-VCMP/api/app/lib/utils/xlsxDownload.js b/code/VideoAccess-VCMP/api/app/lib/utils/xlsxDownload.js index 266e64a..a31df31 100644 --- a/code/VideoAccess-VCMP/api/app/lib/utils/xlsxDownload.js +++ b/code/VideoAccess-VCMP/api/app/lib/utils/xlsxDownload.js @@ -10,7 +10,7 @@ module.exports = function (app, opts) { //递归创建目录 同步方法 async function makeDir (dir) { if (!fs.existsSync(dir)) { - this.makeDir(path.dirname(dir)) + makeDir(path.dirname(dir)) fs.mkdirSync(dir, function (err) { if (err) { throw err diff --git a/code/VideoAccess-VCMP/web/client/src/layout/actions/webSocket.js b/code/VideoAccess-VCMP/web/client/src/layout/actions/webSocket.js index aba8b71..02b43c6 100644 --- a/code/VideoAccess-VCMP/web/client/src/layout/actions/webSocket.js +++ b/code/VideoAccess-VCMP/web/client/src/layout/actions/webSocket.js @@ -21,8 +21,9 @@ export function initWebSocket ({ ioUrl, token }) { return dispatch => { const socket = io( - ioUrl + // ioUrl // 'http://127.0.0.1:4000' + 'ws://127.0.0.1:4000' // '_api/' , { query: {