Skip to content

Commit 3069d3d

Browse files
authored
Merge pull request #1351 from HuangFeiPeng/patch-3
Update demo_vue.md
2 parents 12b8e73 + b9f4f99 commit 3069d3d

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

docs/document/web/demo_vue.md

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,17 @@
1414

1515
## 代码下载
1616

17-
- Vue 3 :[GitHub 源码地址](https://github.com/easemob/webim-vue-demo/tree/demo-vue3)
18-
- Vue 3(miniCore):[GitHub 源码地址](https://github.com/easemob/webim-vue-demo/tree/vue3-miniCore) **miniCore 版本提供 WebIM SDK 按需引入示例以及本地会话使用方式示例,后续新功能将在此版本添加**
19-
- Vue 2:[GitHub 源码地址](https://github.com/easemob/webim-vue-demo/tree/dev-4.0)查看 Demo 源码地址。
17+
- Vue 3:[GitHub 源码地址](https://github.com/easemob/webim-vue-demo/tree/vue3-miniCore)
2018

21-
## 运行 Web IM 项目
19+
## 运行 web-vue3-demo 项目
2220

23-
[github 下载](https://github.com/easemob/webim-vue-demo/tree/dev-4.0) 下载项目代码压缩包,然后解压。解压后,`webim-vue-demo` 文件夹即为 Web IM 的项目目录。
24-
25-
1. 安装 Demo 所需的依赖:在终端中运行 `cd demo``npm install` 命令。
21+
[github 下载](https://github.com/easemob/webim-vue-demo/tree/vue3-miniCore) 下载项目代码压缩包,然后解压。解压后,`webim-vue-demo` 文件夹即为 Web IM 的项目目录。
22+
> 确保`node`运行环境为16或17版本。
23+
1. 安装 Demo 所需的依赖:在终端执行 `npm install``yarn` 命令。
2624

2725
2. 运行 Demo:
28-
- 如果通过 HTTP 访问 Demo,在终端中运行 `cd demo``npm start` 命令。命令运行后会生成 Demo 的访问地址,例如 https://localhost:3001。通过 HTTP 访问的 Demo 中不包含音视频功能
29-
- 如果通过 HTTPS 访问 Demo,在终端中运行 `cd demo``HTTPS=true npm start` 命令。命令运行后会生成 Demo 的访问地址,例如 https://localhost:3001。通过 HTTPS 访问的 Demo 中包含音视频功能
26+
- 在终端中运行 `npm run dev`
27+
- 在浏览器中访问 `http://localhost:9001`,即可体验`webim-vue3-demo`
3028

3129
## 主要模块介绍
3230

@@ -36,11 +34,10 @@ Demo 中的主要模块如下:
3634
| :----------- | :--------------------- |
3735
| `assets` | 资源文件。 |
3836
| `components` | 项目中定义的组件。 |
39-
| `config` | 消息表情。 |
40-
| `pages` | 登录和聊天页面。 |
37+
| `views` | 登录和聊天等相关页面。 |
4138
| `router` | 路由。 |
4239
| `store` | 使用 Vuex 处理的数据。 |
43-
| `utils` | SDK 配置|
40+
| `utils` | 工具方法|
4441

4542
## 部分 Vue 3 Demo 界面展示
4643

0 commit comments

Comments
 (0)