我这边是能够正常设置的,请看下面的菜单项详情:
{
"spec": {
"displayName": "About",
"href": "/about",
"target": "_self",
"priority": 0,
"children": []
},
"status": {
"displayName": "About",
"href": "/about"
},
"apiVersion": "v1alpha1",
"kind": "MenuItem",
"metadata": {
"generateName": "menu-item-",
"name": "menu-item-NlgCj",
"annotations": {},
"version": 2,
"creationTimestamp": "2023-06-02T02:45:46.992870508Z"
}
}
测试版本:Halo 2.6.0
测试方法:
docker run --rm -it -p 8090:8090 -v ~/.halo2:/root/.halo2 halohub/halo:2.6 --halo.security.initializer.superadminusername=admin --halo.security.initializer.superadminpassword=admin