Browse Source

makeDir

release_0.0.2
巴林闲侠 2 years ago
parent
commit
1b16c8a05b
  1. 2
      code/VideoAccess-VCMP/api/app/lib/utils/xlsxDownload.js
  2. 3
      code/VideoAccess-VCMP/web/client/src/layout/actions/webSocket.js

2
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

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

Loading…
Cancel
Save