update pay ui
This commit is contained in:
@@ -63,7 +63,7 @@ if (typeof document !== 'undefined') {
|
||||
*/
|
||||
const fetchIndexKline = async (indexCode) => {
|
||||
try {
|
||||
const response = await fetch(`/api/index/${indexCode}/kline?type=daily`);
|
||||
const response = await fetch(`${getApiBase()}/api/index/${indexCode}/kline?type=daily`);
|
||||
if (!response.ok) throw new Error(`HTTP error! status: ${response.status}`);
|
||||
const data = await response.json();
|
||||
return data;
|
||||
|
||||
Reference in New Issue
Block a user