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: {