接入小程序
This commit is contained in:
13
server2.js
13
server2.js
@@ -297,16 +297,19 @@ async function createMenu() {
|
||||
"name": "加入我们",
|
||||
"url": "https://www.zhipin.com/gongsi/job/d1e30046e726d2d01nN72Ni4EFQ~.html?ka=all-jobs-hot"
|
||||
},
|
||||
{
|
||||
"type": "view",
|
||||
"name": "运维招工",
|
||||
"url": "https://zp.satabot.com/"
|
||||
// {
|
||||
// "type": "miniprogram",
|
||||
// "appid": "wx3aefa617dcb7220f",
|
||||
// "pagepath": "pages/index/index",
|
||||
// "name": "运维招工",
|
||||
// "url": "https://zp.satabot.com/"
|
||||
|
||||
}
|
||||
// }
|
||||
]
|
||||
}
|
||||
]
|
||||
};
|
||||
console.log(menuData, 'menuData');
|
||||
const res = await axios.post(url, menuData);
|
||||
if (res.data.errcode === 0) {
|
||||
console.log('✅ 菜单创建成功');
|
||||
|
||||
Reference in New Issue
Block a user