Skip to content

Commit

Permalink
docs: 录制教学视频
Browse files Browse the repository at this point in the history
  • Loading branch information
JackySoft committed Aug 25, 2024
1 parent aa13ecc commit a256f50
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
5 changes: 4 additions & 1 deletion packages/docs/src/lib/LoginForm.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@

## 视频演示

【放视频】
<video width="680" controls>
<source src="/vedio/createLoginLib.mp4" type="video/mp4">
您的浏览器不支持 Video 标签。
</video>

## 创建组件

Expand Down
5 changes: 5 additions & 0 deletions packages/docs/src/project/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

Marsview 支持从零开始创建项目,同时支持一整套完整项目的配置,比如:项目菜单、项目角色、项目权限、项目开发成员等,创建完成后,可以直接通过`http://admin.marsview.cc`访问创建的项目。

<video width="680" controls>
<source src="/vedio/project.mp4" type="video/mp4">
您的浏览器不支持 Video 标签。
</video>

### 项目列表

项目列表包含名称搜索,新建项目,列表刷新,我创建的和市场公开的项目。
Expand Down
4 changes: 3 additions & 1 deletion packages/editor/src/layout/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ const Header = memo(() => {

const goHome = () => {
setMode('edit');
navigate('/pages');
const fromProject = location.pathname.indexOf('/project') > -1;
const fromLib = location.pathname.indexOf('/lib') > -1;
navigate(fromProject ? '/projects' : fromLib ? '/libs' : '/pages');
};
const {
userInfo,
Expand Down

0 comments on commit a256f50

Please sign in to comment.