私域操盘手 - 修复设备配置错误的问题
This commit is contained in:
@@ -370,7 +370,7 @@ export default function DeviceDetailPage() {
|
||||
}
|
||||
|
||||
// 直接使用fetch,而不是通过API工具
|
||||
const response = await fetch(`${process.env.NEXT_PUBLIC_API_BASE_URL}/v1/task-config`, {
|
||||
const response = await fetch(`${process.env.NEXT_PUBLIC_API_BASE_URL}/v1/devices/task-config`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
|
||||
@@ -136,7 +136,7 @@ export const deviceApi = {
|
||||
momentsSync?: number;
|
||||
aiChat?: number;
|
||||
}): Promise<ApiResponse<Device>> {
|
||||
const response = await fetch(`${API_BASE}/task-config`, {
|
||||
const response = await fetch(`${API_BASE}/devices/task-config`, {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
|
||||
Reference in New Issue
Block a user