From 8fd8b597f50e6ef4547d22329a5b54871e90a5f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BA=E7=8B=A8?= <18119604035@163.com> Date: Fri, 10 Mar 2023 13:51:37 +0800 Subject: [PATCH] =?UTF-8?q?appconfigAPI=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/app-config.ts | 4 ++-- src/api/index.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/api/app-config.ts b/src/api/app-config.ts index 5ee5f5a..c0a1860 100644 --- a/src/api/app-config.ts +++ b/src/api/app-config.ts @@ -4,6 +4,6 @@ export function appConfig() { return client.get("/backend/v1/app-config", {}); } -export function saveAppConfig() { - return client.put(`/backend/v1/app-config`, {}); +export function saveAppConfig(data: any) { + return client.put(`/backend/v1/app-config`, { data: data }); } diff --git a/src/api/index.ts b/src/api/index.ts index 234a3e8..8ff0c83 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -11,3 +11,4 @@ export * as resourceCategory from "./resource-category"; export * as resource from "./resource"; export * as upload from "./upload"; export * as user from "./user"; +export * as appConfig from "./app-config";