Resolved front-end linting issues. (#533)

This commit is contained in:
SkywalkerJi
2025-11-05 21:41:41 +09:00
committed by GitHub
parent 696e9f6187
commit eb515d74e9
6 changed files with 79 additions and 61 deletions

View File

@@ -330,13 +330,13 @@ export const api = {
// 获取服务器IP需要认证用于白名单配置
async getServerIP(): Promise<{
public_ip: string;
message: string;
public_ip: string
message: string
}> {
const res = await fetch(`${API_BASE}/server-ip`, {
headers: getAuthHeaders(),
});
if (!res.ok) throw new Error('获取服务器IP失败');
return res.json();
})
if (!res.ok) throw new Error('获取服务器IP失败')
return res.json()
},
};
}