Browse Source

Update README.md

石文娟 5 years ago
parent
commit
e1d83978a0
1 changed files with 16 additions and 2 deletions
  1. 16 2
      examples/vue/README.md

+ 16 - 2
examples/vue/README.md

@@ -4,7 +4,21 @@
 
 1. 添加配置
 
-详见 config 目录下的 README
+config 目录创建 index.js 文件,并配置 AppId 和 AppKey,示例代码:
+
+```
+const config = {
+  AppId: 'urtc-xxxxxxxx',
+  AppKey: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
+}
+
+export default config;
+```
+
+> 注:
+> 
+> 1. AppId 和 AppKey 可从 URTC 产品中获取
+> 2. AppKey 不可暴露于公网,建议生产环境时,由后端进行保存并由前端调 API 获取
 
 2. 安装 npm 依赖包
 
@@ -20,4 +34,4 @@ npm start
 
 4. 打开页面
 
-浏览器打开 http://localhost:8080
+浏览器打开 http://localhost:8080