微信小程序添加菜单报错45064 no permission to use weapp in menu hint

报:45064错误
描述:no permission to use weapp in menu hint
因为你添加的菜单里面有小程序的菜单,我出现这个错误是因为小程序主体迁移之后,新的公众号未关联当前这个小程序,所以报了这个错误,
解决办法:公众号关联一下要添加的菜单对应的小程序就好了
给一个我添加的公众号菜单模板,可以按照这个添加

{
     "button": [
		{
			"type": "miniprogram", 
			"name": "小程序标题", 
			"url": "http://******", 
			"sub_button": [ ], 
			"appid": "******对应小程序appid", 
			"pagepath": "pages/index/index"
		}, 
		{
			"name": "个人中心", 
			"sub_button": [
				{
					"type": "view", 
					"name": "网页菜单标题", 
					"url": "http://******.com/", 
					"sub_button": [ ]
				}, 
				{
					"type": "view", 
					"name": "公众号菜单标题", 
					"url": "http://******/", 
					"sub_button": [ ]
				}
			]
		}
	]
}

你可能感兴趣的:(微信小程序)