fix: 修复全国气象预警空路由 (#4534)
This commit is contained in:
parent
67a480dccf
commit
a82d56a464
|
|
@ -1,7 +1,7 @@
|
|||
const got = require('@/utils/got');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const province = encodeURIComponent(ctx.params.province) || '&';
|
||||
const province = ctx.params.province || '&';
|
||||
const alarmInfoURL = `http://www.nmc.cn/rest/findAlarm?pageNo=1&pageSize=20&signaltype=&signallevel=&province=${province}`;
|
||||
const response = await got({
|
||||
method: 'get',
|
||||
|
|
|
|||
Loading…
Reference in New Issue