From ff9ad0be8f0904de45c4facf3fb6b19ddeae407d Mon Sep 17 00:00:00 2001 From: jingna <1264204245@qq.com> Date: Mon, 29 Jun 2026 09:57:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=97=B6=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/platform.ts | 8 +++ frontend/src/views/timeSetting/index.vue | 89 ++++++++++++++---------- 2 files changed, 60 insertions(+), 37 deletions(-) diff --git a/frontend/src/api/platform.ts b/frontend/src/api/platform.ts index bbb3cf9..6c51700 100644 --- a/frontend/src/api/platform.ts +++ b/frontend/src/api/platform.ts @@ -143,3 +143,11 @@ export async function saveDeviceUart(payload: any[]): Promise { const response = await http.post>('/config/device/uart', payload) return response.data.data } +export async function saveTimeSync(payload: { time_sync: string }): Promise> { + const response = await http.post>('/config/time-sync', payload) + return response.data +} +export async function getTimeSync(): Promise> { + const response = await http.get>('/config/time-sync') + return response.data +} diff --git a/frontend/src/views/timeSetting/index.vue b/frontend/src/views/timeSetting/index.vue index e86b28b..32321ae 100644 --- a/frontend/src/views/timeSetting/index.vue +++ b/frontend/src/views/timeSetting/index.vue @@ -1,58 +1,71 @@