本 Demo 的所有模拟数据均在 migrations\data
目录中,运行 Demo 需要参考如下步骤将数据导入 LeanCloud
中(小程序有很多地方限制访问本地数据):
- 注册 LeanCloud
- 新建一个应用,然后把应用的
APP_ID
和APP_KEY
填入src\config\index.js
之中 - 执行
npm install && npm run migrate
,等待数据导入成功
- 完成数据初始化之后,用
微信开发者工具
打开src
目录 - 如需手机预览,需参考 这里 为
LeanCloud
设置微信后台服务器域名白名单