1. 新增menu.json 用于引入组件之后,在admin中 菜单管理-》待添加菜单 -》添加选中菜单
[ { "menu_id": "uni-upgrade-fwm-list", "name": "固件升级中心", "icon": "uni-icons-compose", "url": "/uni_modules/uni-upgrade-fwm/pages/version/list", "sort": 1037, "parent_id": "system_management", "permission": [], "enable": true } ]
*这里需要注意url需要一/开头,uni市场的文章模块就是没有/导致不能正常展开菜单
2. 在/*项目目录*/创建uniCloud云函数目录-》右键创建database-》创建schem扩展,已有扩展可直接上传
// 文档教程: https://uniapp.dcloud.net.cn/uniCloud/schema { "bsonType": "object", "required": [ "appid", "uni_platform", "version", "type", "create_env" ], "permission": { "read": "'READ_OPENDB_APP_VERSIONS' in auth.permission", "create": "'CREATE_OPENDB_APP_VERSIONS' in auth.permission", "update": "'UPDATE_OPENDB_APP_VERSIONS' in auth.permission", "delete": "'DELETE_OPENDB_APP_VERSIONS' in auth.permission" }, "properties": { "_id": { "description": "记录id,自动生成" } }, "version": "0.0.2" }