Skip to content

Commit 23d29c9

Browse files
authored
Merge pull request #7 from knight-L/dev
fix: 修复地址错误
2 parents f8730cf + 4bdf302 commit 23d29c9

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# 数据可视化大屏 (SC DataV)
22

3-
[http://localhost:5173/sc-datav/#/](http://localhost:5173/sc-datav/#/)
3+
[https://knight-l.github.io/sc-datav/#/](https://knight-l.github.io/sc-datav/#/)
44
![demo1](./demo_1.png)
5-
[http://localhost:5173/sc-datav/#/demo1](http://localhost:5173/sc-datav/#/demo1)
5+
[https://knight-l.github.io/sc-datav/#/demo1](https://knight-l.github.io/sc-datav/#/demo1)
66
![demo2](./demo_2.png)
77

88
## 功能特性

src/pages/Demo1/index.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import { Suspense } from "react";
21
import styled from "styled-components";
3-
import { OrbitControls, ContactShadows, Loader } from "@react-three/drei";
2+
import { OrbitControls, ContactShadows } from "@react-three/drei";
43
import { Canvas } from "@react-three/fiber";
54
import type { CityGeoJSON } from "@/pages/SCDataV/map";
65
import Content from "./content";
@@ -41,9 +40,7 @@ export default function Map() {
4140
<Lights />
4241
<Sky />
4342

44-
<Suspense fallback={null}>
45-
<Base data={mapData} outlineData={outlineData} />
46-
</Suspense>
43+
<Base data={mapData} outlineData={outlineData} />
4744

4845
<Bottom />
4946

@@ -69,7 +66,6 @@ export default function Map() {
6966
</Canvas>
7067
</CanvasWrapper>
7168
<Content />
72-
<Loader />
7369
</Wrapper>
7470
);
7571
}

0 commit comments

Comments
 (0)