feat: 添加新页面和更新导航逻辑,增强用户体验
- 在 Maozedong 组件中添加新的图像按钮,更新导航至不同的地点页面。 - 在路由配置中引入新的地点页面组件,支持用户访问不同的展览位置。 - 确保导航逻辑与新页面一致,提升用户交互体验。
This commit is contained in:
1 parent
7bbeb10e57
commit
2c8bc73e57
24 files changed
+699
-3
No files matched your search
@@ -28,13 +28,21 @@ const Maozedong = () => {
|
||||
/>
|
||||
|
||||
<div className="absolute right-20 top-75 flex flex-col space-y-10">
|
||||
<Image button src={getStaticImage("star/一-解锁")} />
|
||||
<Image
|
||||
button
|
||||
src={getStaticImage("star/一-解锁")}
|
||||
onClick={() => navigate(`/${moduleName}/${starName}/place1`)}
|
||||
/>
|
||||
<Image
|
||||
button
|
||||
src={getStaticImage("star/二-解锁")}
|
||||
onClick={() => navigate(`/${moduleName}/${starName}/demo`)}
|
||||
onClick={() => navigate(`/${moduleName}/${starName}/place2`)}
|
||||
/>
|
||||
<Image
|
||||
button
|
||||
src={getStaticImage("star/三-解锁")}
|
||||
onClick={() => navigate(`/${moduleName}/${starName}/place3`)}
|
||||
/>
|
||||
<Image button src={getStaticImage("star/三-解锁")} />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user