Skip to content

Commit 3b4b8d3

Browse files
Copilothustcc
andauthored
chore: update icon service URL from lab.weavefox.cn to www.weavefox.cn (#241)
Agent-Logs-Url: https://github.com/antvis/Infographic/sessions/c6815526-5488-4def-b648-39b5bb5bc899 Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: hustcc <7856674+hustcc@users.noreply.github.com>
1 parent a7afb0c commit 3b4b8d3

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

site/src/components/IconPage/index.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,7 @@ export function IconPageContent() {
259259
topK: topK.toString(),
260260
});
261261
const response = await fetch(
262-
`https://lab.weavefox.cn/api/v1/infographic/icon?${params.toString()}`
263-
);
264-
const result = await response.json();
262+
`https://www.weavefox.cn/api/v1/infographic/icon?${params.toString()}`
265263
if (result.success && Array.isArray(result.data)) {
266264
setIcons(result.data);
267265
} else {
@@ -299,7 +297,7 @@ export function IconPageContent() {
299297
text: endpointParams.text,
300298
topK: endpointParams.topK,
301299
});
302-
return `https://lab.weavefox.cn/api/v1/infographic/icon?${params.toString()}`;
300+
return `https://www.weavefox.cn/api/v1/infographic/icon?${params.toString()}`;
303301
}, [endpointParams]);
304302

305303
const copyEndpoint = async () => {
@@ -484,7 +482,7 @@ export function IconPageContent() {
484482
GET
485483
</span>
486484
<span className="whitespace-pre-wrap break-words">
487-
https://lab.weavefox.cn/api/v1/infographic/icon?
485+
https://www.weavefox.cn/api/v1/infographic/icon?
488486
<span className="font-semibold text-primary dark:text-primary-dark">
489487
{sidebarTexts.paramTextLabel}
490488
</span>

site/src/components/ResourceLoader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ registerResourceLoader(async (config) => {
2626

2727
if (scene === 'icon') {
2828
url = await fetch(
29-
'https://lab.weavefox.cn/api/v1/infographic/icon?text=' +
29+
'https://www.weavefox.cn/api/v1/infographic/icon?text=' +
3030
encodeURIComponent(data) +
3131
'&topK=1'
3232
)

src/constants/service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const ICON_SERVICE_URL = 'https://lab.weavefox.cn/api/v1/infographic/icon';
1+
export const ICON_SERVICE_URL = 'https://www.weavefox.cn/api/v1/infographic/icon';

0 commit comments

Comments
 (0)