File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff line change 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' ;
You can’t perform that action at this time.
0 commit comments