From 744e6c9de106b6ecb72a3df616ed006f64cb5957 Mon Sep 17 00:00:00 2001 From: u2nyakim Date: Tue, 26 Aug 2025 10:46:01 +0800 Subject: [PATCH] up. --- z_ele/src/api/system/config/index.ts | 11 +++++++++++ z_ele/src/views/system/config-set/index.vue | 17 ++++++++++++++--- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/z_ele/src/api/system/config/index.ts b/z_ele/src/api/system/config/index.ts index 760dc10..33edf7c 100644 --- a/z_ele/src/api/system/config/index.ts +++ b/z_ele/src/api/system/config/index.ts @@ -93,3 +93,14 @@ export async function checkExistence( } return Promise.reject(new Error(res.data.message)); } + +/** + * 同步当前配置 + */ +export async function syncConfigs() { + const res = await request.put>('/system/config/sync', {}); + if (res.data.code === 0 && res.data.data) { + return res.data.data; + } + return Promise.reject(new Error(res.data.message)); +} diff --git a/z_ele/src/views/system/config-set/index.vue b/z_ele/src/views/system/config-set/index.vue index eb0fe89..504eb3a 100644 --- a/z_ele/src/views/system/config-set/index.vue +++ b/z_ele/src/views/system/config-set/index.vue @@ -9,7 +9,7 @@ > 刷新 - + 同步配置 @@ -41,12 +41,12 @@