Skip to content

Commit 1d20525

Browse files
authored
upd: 资源路径问题
1 parent 5fc15b9 commit 1d20525

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ const geojsonSource = () => {
220220
} else {
221221
result.push(
222222
new SourceVector({
223-
url: `/${file}.json`, // 第一个 GeoJSON 文件的路径
223+
url: `/ol-vite-vue3/${file}.json`, // 第一个 GeoJSON 文件的路径
224224
format: new GeoJSON({
225225
dataProjection: "EPSG:4326",
226226
featureProjection: "EPSG:3857",

0 commit comments

Comments
 (0)