Skip to content

Commit

Permalink
增强兼容性;
Browse files Browse the repository at this point in the history
  • Loading branch information
yb committed Feb 18, 2021
1 parent b72a263 commit 9c7de95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/uptimerobot.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const GetMonitors = async (apikey, days) => {
custom_uptime_ranges: ranges.join('-'),
};

const api = window.Config.ApiDomain;
const api = window.Config.ApiDomain || 'api.uptimerobot.com';
const monitors = await Axios.post(`https://${api}/v2/getMonitors`, postdata, { timeout: 10000 })
.then(response => {
if (response.data.stat === 'ok') return Promise.resolve(response.data.monitors);
Expand Down

1 comment on commit 9c7de95

@vercel
Copy link

@vercel vercel bot commented on 9c7de95 Feb 18, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.