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 @@