update pay ui

This commit is contained in:
2025-12-13 18:08:48 +08:00
parent 0060911e41
commit 4ccbb09067
3 changed files with 83 additions and 33 deletions

View File

@@ -180,7 +180,7 @@ const StockOverview = () => {
const fetchTopConcepts = async (date = null) => {
setLoadingConcepts(true);
try {
const url = date ? `/api/concepts/daily-top?limit=6&date=${date}` : '/api/concepts/daily-top?limit=6';
const url = date ? `${getApiBase()}/api/concepts/daily-top?limit=6&date=${date}` : `${getApiBase()}/api/concepts/daily-top?limit=6`;
const response = await fetch(url);
const data = await response.json();
@@ -223,7 +223,7 @@ const StockOverview = () => {
const fetchHeatmapData = async (date = null) => {
setLoadingHeatmap(true);
try {
const url = date ? `/api/market/heatmap?limit=500&date=${date}` : '/api/market/heatmap?limit=500';
const url = date ? `${getApiBase()}/api/market/heatmap?limit=500&date=${date}` : `${getApiBase()}/api/market/heatmap?limit=500`;
const response = await fetch(url);
const data = await response.json();
@@ -255,7 +255,7 @@ const StockOverview = () => {
// 获取市场统计数据
const fetchMarketStats = async (date = null) => {
try {
const url = date ? `/api/market/statistics?date=${date}` : '/api/market/statistics';
const url = date ? `${getApiBase()}/api/market/statistics?date=${date}` : `${getApiBase()}/api/market/statistics`;
const response = await fetch(url);
const data = await response.json();