fix: wrong doc link of beijing municipal health commission (#3959)
This commit is contained in:
@@ -1241,7 +1241,7 @@
|
||||
wjw: [
|
||||
{
|
||||
title: '北京卫生健康委员会',
|
||||
docs: 'https://docs.rsshub.app/government.html#zhong-yang-ji-wei-guo-jia-jian-wei',
|
||||
docs: 'https://docs.rsshub.app/government.html#bei-jing-shi-wei-sheng-jian-kang-wei-yuan-hui',
|
||||
source: '/xwzx_20031/:caty',
|
||||
target: '/gov/beijing/mhc/:caty',
|
||||
},
|
||||
|
||||
@@ -26,7 +26,7 @@ const config = {
|
||||
module.exports = async (ctx) => {
|
||||
const cfg = config[ctx.params.caty];
|
||||
if (!cfg) {
|
||||
throw Error('Bad category. See <a href="https://docs.rsshub.app/government.html#zhong-yang-ji-wei-guo-jia-jian-wei">docs</a>');
|
||||
throw Error('Bad category. See <a href="https://docs.rsshub.app/government.html#bei-jing-shi-wei-sheng-jian-kang-wei-yuan-hui">docs</a>');
|
||||
}
|
||||
|
||||
const current_url = url.resolve(root_url, cfg.link);
|
||||
|
||||
Reference in New Issue
Block a user