update pay ui
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react';
|
||||
import { logger } from '../../utils/logger';
|
||||
import { getApiBase } from '../../utils/apiConfig';
|
||||
|
||||
/**
|
||||
* Events API Slice - 使用 RTK Query 管理事件数据
|
||||
@@ -20,7 +21,8 @@ export const eventsApi = createApi({
|
||||
|
||||
// 基础查询配置
|
||||
baseQuery: fetchBaseQuery({
|
||||
baseUrl: '/api',
|
||||
baseUrl: `${getApiBase()}/api`,
|
||||
credentials: 'include',
|
||||
prepareHeaders: (headers) => {
|
||||
// 可以在这里添加认证 token
|
||||
// const token = localStorage.getItem('token');
|
||||
|
||||
Reference in New Issue
Block a user