mirror of
https://github.com/Wanxp/obsidian-douban.git
synced 2026-04-04 16:48:44 +08:00
fix fetch data error
This commit is contained in:
parent
290eaaa45b
commit
c016bbdc46
@ -88,7 +88,7 @@ export default class NetFileHandler {
|
|||||||
//临时限定只支持PicGo
|
//临时限定只支持PicGo
|
||||||
try {
|
try {
|
||||||
const response = await HttpUtil.httpRequest(
|
const response = await HttpUtil.httpRequest(
|
||||||
HttpUtil.replaceUrlPath(context.settings.pictureBedSetting.url, 'heartbeat'), {}, context.plugin.settingsManager, {method: "post"});
|
HttpUtil.replaceUrlPath(context.settings.pictureBedSetting.url, '/heartbeat'), {}, context.plugin.settingsManager, {method: "post"});
|
||||||
const data = response.textJson as ResultI;
|
const data = response.textJson as ResultI;
|
||||||
return data? data.success: false;
|
return data? data.success: false;
|
||||||
}catch (e) {
|
}catch (e) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user