modify ui

This commit is contained in:
Julian Freeman
2026-02-22 17:52:51 -04:00
parent bac7428fde
commit 1e378b20e0
2 changed files with 7 additions and 4 deletions

View File

@@ -44,8 +44,11 @@ export const useSettingsStore = defineStore('settings', () => {
const logs = ref<{ timestamp: string; type: 'request' | 'response' | 'error'; content: any }[]>([]);
const addLog = (type: 'request' | 'response' | 'error', content: any) => {
const now = new Date();
const timestamp = `${now.getFullYear()}-${String(now.getMonth() + 1).padStart(2, '0')}-${String(now.getDate()).padStart(2, '0')} ${String(now.getHours()).padStart(2, '0')}:${String(now.getMinutes()).padStart(2, '0')}:${String(now.getSeconds()).padStart(2, '0')}`;
logs.value.unshift({
timestamp: new Date().toLocaleTimeString(),
timestamp,
type,
content
});