更新Company页面的UI为FUI风格
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
import { useState, useCallback, useMemo, useEffect, useRef } from 'react';
|
import { useState, useCallback, useMemo, useEffect, useRef } from 'react';
|
||||||
import debounce from 'lodash/debounce';
|
import debounce from 'lodash/debounce';
|
||||||
|
import { getApiBase } from '@utils/apiConfig';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 股票搜索 Hook
|
* 股票搜索 Hook
|
||||||
@@ -37,7 +38,7 @@ export const useStockSearch = (options = {}) => {
|
|||||||
setIsSearching(true);
|
setIsSearching(true);
|
||||||
try {
|
try {
|
||||||
const response = await fetch(
|
const response = await fetch(
|
||||||
`/api/stocks/search?q=${encodeURIComponent(query.trim())}&limit=${limit}`
|
`${getApiBase()}/api/stocks/search?q=${encodeURIComponent(query.trim())}&limit=${limit}`
|
||||||
);
|
);
|
||||||
const data = await response.json();
|
const data = await response.json();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user