diff --git a/README.md b/README.md index 2d446f47d..3593b7eb3 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,8 @@ Installation #### Quickstart ~~~shell -yarn create nocobase-app my-nocobase-app --quickstart +# `--lang=en-US` Language settings support `--lang=en-US` and `--lang=zh-CN` +yarn create nocobase-app my-nocobase-app --quickstart --lang=en-US # or zh-CN ~~~ #### Step by step @@ -81,7 +82,9 @@ yarn create nocobase-app my-nocobase-app cd my-nocobase-app # 3. create initialization data -yarn nocobase init --import-demo +# `--import-demo` Importing demo data +# `--lang=en-US` Language settings support `--lang=en-US` and `--lang=zh-CN` +yarn nocobase init --import-demo --lang=en-US # 4. start project yarn start diff --git a/README.zh-CN.md b/README.zh-CN.md index 07cb58e7b..85cbc2af8 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -75,7 +75,8 @@ Database: #### 快速启动 ~~~shell -yarn create nocobase-app my-nocobase-app --quickstart +yarn create nocobase-app my-nocobase-app --quickstart --lang=zh-CN +# `--lang=en-US` 语言设置,支持 `--lang=en-US` 和 `--lang=zh-CN` ~~~ #### 分步骤执行 @@ -87,7 +88,9 @@ yarn create nocobase-app my-nocobase-app cd my-nocobase-app # 3. 初始化数据 -yarn nocobase init --import-demo +yarn nocobase init --import-demo --lang=zh-CN +# `--import-demo` 导入演示数据 +# `--lang=en-US` 语言设置,支持 `--lang=en-US` 和 `--lang=zh-CN` # 4. 启动项目 yarn start diff --git a/docs/examples/demos/demo1.tsx b/docs/examples/demos/demo1.tsx index 5d66a91c4..61727bf8d 100644 --- a/docs/examples/demos/demo1.tsx +++ b/docs/examples/demos/demo1.tsx @@ -1,7 +1,7 @@ import { useRequest } from 'ahooks'; import { Spin } from 'antd'; import React, { useMemo } from 'react'; -import { MemoryRouter as Router } from 'react-router-dom'; +import { HashRouter as Router } from 'react-router-dom'; import { createRouteSwitch, RouteRedirectProps, @@ -56,7 +56,7 @@ const App = () => { return (