Skip to content

Commit 72a0a4f

Browse files
committed
update
1 parent 9d10e45 commit 72a0a4f

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

public/examples.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,28 @@
33
"id": "dxf_0",
44
"models": [{
55
"modelId": "0",
6-
"src": "/models/dxf/dxf_0.dxf"
6+
"src": "models/dxf/dxf_0.dxf"
77
}]
88
},
99
{
1010
"id": "dxf_1",
1111
"models": [{
1212
"modelId": "1",
13-
"src": "/models/dxf/dxf_1.dxf"
13+
"src": "models/dxf/dxf_1.dxf"
1414
}]
1515
},
1616
{
1717
"id": "dxf_2",
1818
"models": [{
1919
"modelId": "2",
20-
"src": "/models/dxf/dxf_2.dxf"
20+
"src": "models/dxf/dxf_2.dxf"
2121
}]
2222
},
2323
{
2424
"id": "dxf_3",
2525
"models": [{
2626
"modelId": "3",
27-
"src": "/models/dxf/dxf_3.dxf"
27+
"src": "models/dxf/dxf_3.dxf"
2828
}]
2929
}
3030
]

src/Consts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11

2-
export const ExamplesFileUrl = "/examples.json"
2+
export const ExamplesFileUrl = "examples.json"
33

44
export const FontFiles = ["libs/fonts/simplex.shx", "libs/fonts/hztxt.shx", "libs/fonts/arial.ttf", "libs/fonts/Microsoft_YaHei.ttf"]

src/uitls/Utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Example } from '@/Defines'
44

55
export const fetchExamples = async () => {
66
return new Promise<Example[]>((resolve) => {
7+
console.log(process.env.BASE_URL);
78
fetch(`${process.env.BASE_URL}${ExamplesFileUrl}`).then(response => response.json()).then(data => {
89
resolve(data)
910
})

0 commit comments

Comments
 (0)