优化一些功能

This commit is contained in:
yml2213
2026-07-29 14:02:56 +08:00
parent 2c88edb741
commit f64838f8db
19 changed files with 313 additions and 85 deletions
+3 -4
View File
@@ -8,6 +8,7 @@ import { useLogs } from '@/composables/useLogs'
import { useActivity } from '@/composables/useActivity'
import AppShell from '@/components/layout/AppShell.vue'
import ToastContainer from '@/components/ToastContainer.vue'
import { GetTime, GetVersion } from '@wails/go/app/App'
const { initTheme } = useTheme()
const { loadProducts, restoreSelection: restoreProductSelection } = useProducts()
@@ -25,11 +26,9 @@ let timeTimer: number | null = null
let logTimer: number | null = null
let resultTimer: number | null = null
const App = window.go.app.App
const updateTime = async () => {
try {
const d = await App.GetTime()
const d = await GetTime()
serverTime.value = d.serverTime || '--'
} catch {}
}
@@ -68,7 +67,7 @@ onMounted(async () => {
// 获取版本号
try {
version.value = await App.GetVersion()
version.value = await GetVersion()
} catch {}
// 清空后端旧结果