Skip to content

Commit 67cfb4c

Browse files
committed
fix(core): update loader to support modelpath endWidth "/"
1 parent aa2110b commit 67cfb4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/paddlejs-core/src/loader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default class ModelLoader {
3737
};
3838

3939
constructor(modelPath: string) {
40-
let modelDir = '';
40+
let modelDir = modelPath;
4141
let filename = 'model.json';
4242
if (modelPath.endsWith('.json')) {
4343
const dirPosIndex = modelPath.lastIndexOf('/') + 1;

0 commit comments

Comments
 (0)