api
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import { getUserToken, removeStorageItem, runOnClient } from '@/lib/utils/storage'
|
import { getUserToken, removeStorageItem, runOnClient } from '@/lib/utils/storage'
|
||||||
|
|
||||||
// API 客户端工具,统一处理请求和认证
|
// API 客户端工具,统一处理请求和认证
|
||||||
const API_BASE_URL = 'http://116.204.124.80:8080/api'
|
const API_BASE_URL = 'http://localhost:8080/api'
|
||||||
|
|
||||||
// 获取存储的 token
|
// 获取存储的 token
|
||||||
function getToken(): string | null {
|
function getToken(): string | null {
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
import { getUserToken, removeStorageItem, runOnClient } from '@/utils/storage'
|
import { getUserToken, removeStorageItem, runOnClient } from '@/utils/storage'
|
||||||
|
|
||||||
// API 客户端工具,统一处理请求和认证
|
// API 客户端工具,统一处理请求和认证
|
||||||
const API_BASE_URL = 'http://116.204.124.80:8080/api'
|
const API_BASE_URL = 'http://localhost:8080/api'
|
||||||
|
|
||||||
// 获取存储的 token
|
// 获取存储的 token
|
||||||
function getToken(): string | null {
|
function getToken(): string | null {
|
||||||
|
Reference in New Issue
Block a user