uniapp引入文章模块_小程序利用uniapp云开发_uni-admin引入模块菜单问题
uniapp的uni-admin十分方便,下面介绍如何使用,如何解决引入文章模块导致菜单不能缩放的问题
uniapp引入文章模块_小程序利用uniapp云开发_uni-admin引入模块菜单问题-MakerLi

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"
}