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