Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Xwite committed Oct 10, 2024
1 parent 58b39e5 commit 040d070
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/web/src/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ export const setLeagdoHttpUrl = (http_url) => {
// 手动初始化 阅读web服务地址
setLeagdoHttpUrl(ajax.defaults.baseURL);
/**
* @param {string|URL} http_url
* @param {string|URL|undefined} http_url
* @returns
*/
const testLeagdoHttpUrlConnection = async (http_url) => {
const testLeagdoHttpUrlConnection = async (http_url = legado_http_entry_point) => {
const { data = {} } = await ajax.get("/getReadConfig", {
baseURL: http_url,
baseURL: http_url.toString(),
timeout: 3000,
});
// 返回结果应该是JSON 并有键值isSuccess
Expand Down

0 comments on commit 040d070

Please sign in to comment.