Skip to content

Commit c0683e6

Browse files
committedNov 20, 2020
fix: use path to join path
1 parent c86ca66 commit c0683e6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎src/stores/deepdetect/service.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { action, observable, computed, toJS, runInAction } from "mobx";
22
import store from "store";
33

44
import moment from "moment";
5+
import path from 'path'
56

67
import Input from "./input";
78

@@ -313,8 +314,8 @@ export default class deepdetectService {
313314

314315
this.inputs = serverInputs.map(i => {
315316
let input = new Input();
316-
input.content = folder.label + i;
317-
input.path = systemPath + folder.label + i;
317+
input.content = path.join(folder.path, i);
318+
input.path = path.join(systemPath, input.content);
318319
return input;
319320
});
320321

0 commit comments

Comments
 (0)